summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-11-27 19:15:06 +0100
committerDavid Sterba <dsterba@suse.cz>2014-12-10 15:46:17 +0100
commit47bbff777e73fb392bf84a2a84a3d4d7e7aa2279 (patch)
tree40a472597bb1c4aff86b7f6fa340d7dbbca450b6 /cmds-subvolume.c
parent1f728b1a514f85d53741d08c965bfbae17576363 (diff)
downloadbtrfs-progs-47bbff777e73fb392bf84a2a84a3d4d7e7aa2279.tar.gz
btrfs-progs: let subvol delete print commit mode inline
There are options to specify if the subvolume deletion should wait for commit after each subvol or at the end. This is reported at the beginning and considered as a noise. We'd like to report the mode for each subvolume instead. http://www.mail-archive.com/linux-btrfs%40vger.kernel.org/msg34617.html Reported-by: Marc MERLIN <marc@merlins.org Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index 53eec46..4e452f4 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -303,7 +303,9 @@ again:
goto out;
}
- printf("Delete subvolume '%s/%s'\n", dname, vname);
+ printf("Delete subvolume (%s): '%s/%s'\n",
+ sync_mode == 2 || (sync_mode == 1 && cnt + 1 == argc)
+ ? "commit" : "no-commit", dname, vname);
strncpy_null(args.name, vname);
res = ioctl(fd, BTRFS_IOC_SNAP_DESTROY, &args);
e = errno;