btrfs-snapshots-diff icon indicating copy to clipboard operation
btrfs-snapshots-diff copied to clipboard

Decode Btrfs send stream

Results 11 btrfs-snapshots-diff issues
Sort by recently updated
recently updated
newest added

``` Traceback (most recent call last): File "/home/user/@temp/btrfs-snapshots-diff.py", line 441, in modified, commands = stream.decode() ^^^^^^^^^^^^^^^ File "/home/user/@temp/btrfs-snapshots-diff.py", line 322, in decode idx2, path = self._tlv_get_string( ^^^^^^^^^^^^^^^^^^^^^ File "/home/user/@temp/btrfs-snapshots-diff.py", line...

looks like this: ``` $ sudo btrfs subvolume snapshot -r ~/d/ ~/d/.snapshots/two $ sudo btrfs send --no-data -p ~/d/.snapshots/one/ /mnt/d/.snapshots/two/ > /tmp/diff_file $ ./bin/btrfs-snapshots-diff-summary.py -f /tmp/diff_file --stats Commands: 1790787 utimes...

la orana, when passing a file that is not done yet, it might be nice to have a user-friendly message ``` sudo btrfs send --no-data -p ~/d/.snapshots/one/ /mnt/d/.snapshots/two/ > diff...

Current behavior was printing an error if no output format is specified. However, both the error message was misleading ("No output!" means "There is no output to show") and unnecessary,...

I'm planning to use this tool to create another implementation of `btrfs send | btrfs receive` mechanism. See [this issue](https://github.com/ceremcem/smith-sync/issues/10) for the rationale. This tool might be useful while investigating...

Consider cherry picking useful commits from https://github.com/daviessm/btrfs-snapshots-diff. (Note to myself)

Since you made all the effort of decoding the stream, what about another output format: _GNU diff_ This would allow to extract patch files from btrfs snapshots :)

create-example.sh now touches a new file with a non-UTF-8 filename that would cause it to fail without the patch to btrfs-snapshots-diff.py but I cannot fix the tests because of #23.

It now aligns with https://github.com/torvalds/linux/blob/dd83757f6e686a2188997cb58b5975f744bb7786/fs/btrfs/send.c#L5394 This maybe fixes #22. Without this, I got this error: ``` Traceback (most recent call last): File "/home/peter/work/btrfs-snapshots-diff/./btrfs-snapshots-diff.py", line 653, in main() File "/home/peter/work/btrfs-snapshots-diff/./btrfs-snapshots-diff.py", line...