linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs subvol find-new
@ 2010-03-26 10:18 Michael Niederle
  2010-03-26 13:22 ` Chris Mason
  0 siblings, 1 reply; 11+ messages in thread
From: Michael Niederle @ 2010-03-26 10:18 UTC (permalink / raw)
  To: linux-btrfs

I want to write a differential backup tool for btrfs snapshots.

The new "btrfs subvol find-new"-command sounds great on first encounter, but I'm
missing informations about updated directories. I would need a list of updated
directories to scan for deleted files.

I had a look at find_updated_files() in btrfs-list.c. To me it seems as if
the ioctl would only return the extents of regular files.

The function find_root_gen() in btrfs-list.c seems to return the newest
generation in a given snapshot. It would be nice to have this exported as a
user command (e.g. "btrfs subvol newest-gen") then one could use the output of 

btrfs subvol newest-gen <old snapshot>

(plus 1) as the input generation number to

btrfs subvol find-new <new snapshot> <gen+1>

(I'm using kernel 2.6.32.10 with the most current btrfs-kernel modules and
userland tools as of last Saturday.)

Greetings, Michael

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-03-27  9:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 10:18 btrfs subvol find-new Michael Niederle
2010-03-26 13:22 ` Chris Mason
2010-03-26 18:51   ` btrfs subvol find-modified Dipl.-Ing. Michael Niederle
2010-03-26 19:36     ` Chris Mason
2010-03-26 20:22       ` Dipl.-Ing. Michael Niederle
2010-03-26 20:26         ` Chris Mason
2010-03-26 20:36           ` Goffredo Baroncelli
2010-03-26 21:11             ` Chris Mason
2010-03-26 22:23               ` Goffredo Baroncelli
2010-03-27  9:52               ` directory order in btrfs Dipl.-Ing. Michael Niederle
2010-03-26 21:38             ` btrfs subvol diff Dipl.-Ing. Michael Niederle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).