From: Jean-Denis Girard <jd.girard@sysnux.pf>
To: linux-btrfs@vger.kernel.org
Subject: Snapshots diff
Date: Sun, 3 Apr 2016 11:46:15 -1000 [thread overview]
Message-ID: <nds2v8$72d$1@ger.gmane.org> (raw)
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,
--
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
reply other threads:[~2016-04-03 21:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='nds2v8$72d$1@ger.gmane.org' \
--to=jd.girard@sysnux.pf \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.