Consistency checking and fixing
Metadata about snapshots is currently saved in *.info files. In some circumstances, these files need not to be consistent with the snapshot btrfs subvolumes. For example, there are *.info files without the pertaining subvolumes. These files are listed as "snapshots" but schnapps can't do anything with them (each attempt fails with a non-explaining error message). And there is no way (other than low-level manual cleanup) how to fix it.
I think that schnapps should provide solution for this. There are two possible ways:
- Before each operation, a consistency check/repair is executed.
-
schnapps cleanupenhancement (consistency checking and fixing before removing old snapshots)
The first way is more comfortable but may lead to delaying of operations.