Snapshots diff
Hi list,
I've written a little Python script that displays differences between two snapshots. It relies on btrfs send to compute the differences. You can get it here: https://github.com/sysnux/btrfs-snapshots-diff
There are no dependencies besides Python2.
The stream is decoded in the Python code, and there is something wrong with symlinks : the action in the stream does not correspond to what is written in btrfs-progs/send-stream.c (BTRFS_SEND_A_INO vs BTRFS_SEND_A_PATH_LINK). I probably made a mistake, but can't find it:
can someone explain that difference?
I hope someone will find this useful.
Thanks,
Signature · 4 lines
Jean-Denis Girard SysNux Systèmes Linux en Polynésie française http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27