btrfs-progs: subvol: let sync check only current deletions
authorDavid Sterba <dsterba@suse.cz>
Tue, 7 Apr 2015 22:28:48 +0000 (00:28 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 9 Jun 2015 16:18:19 +0000 (18:18 +0200)
commitc9f885ec8963be55983caeeb63ff6cd71ded3f52
tree18d674d942ed3aeeaf1186a3e54a8311a0e2356b
parentff36fbae4d4e6a18c43c0693fb16f0abfc411e32
btrfs-progs: subvol: let sync check only current deletions

So far the subvol sync command takes a shortcut and looks if there are
any deleted subvols at all. It does not print the deleted subvolumes as
they get cleaned. Arguably this is what the user would like to see and
has to do

 $ btrfs subvol sync /path $(btrfs subvol list -d /path | "extract the ids")

to see the progress.

Make it look for all currently deleted subvolumes automatically and
print the progress as if the ids were listed manually.

This is a slight change in the semantics of the command. Previously, any
new subvol deletion would prevent subvol sync to return. To simulate the
old behaviour, run 'subvol sync' in a loop until it returns 0.

Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/btrfs-subvolume.asciidoc
cmds-subvolume.c