I have been attempting to add page checksums to an sqlite3 database used by my backup software, but have found when using https://www.sqlite.org/cksumvfs.html I am unable to migrate an existing database without getting checksum failures.
Below is a git repository containing the database and a script to reproduce the issue:
A summary of the problem:
cp backup.sendlog backup.copy.sendlog
# Vacuum works fine initially, integrity checks pass.
# Enable cksumvfs following sqlite website.
# Second vacuum fails with failed checksum, even though first was ok.
.filectrl reserve_bytes 8
produces the output:
+ cp backup.sendlog backup.copy.sendlog
Error: near line 5: disk I/O error
Could anyone help me confirm if this is a bug, or if I am doing anything wrong?
Thanks for any help.