From a70b0b2bba94fe62541cc21a9afe35015521fcc3 Mon Sep 17 00:00:00 2001 From: "Zhong, Xin" Date: Tue, 12 Jul 2011 10:48:37 +0800 Subject: Btrfs-progs: add "btrfs subvolume get-default" subcommand Add subcommand to get the default subvolume of btrfs filesystem V2->V3: * add man page * based on http://git.darksatanic.net/repo/btrfs-progs-unstable.git integration-20110705 Reviewed-by: Andreas Philipp Reviewed-by: Goffredo Baroncelli Reported-by: Yang, Yi Signed-off-by: Zhong, Xin --- btrfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'btrfs.c') diff --git a/btrfs.c b/btrfs.c index a3f9a01d..a48f07b7 100644 --- a/btrfs.c +++ b/btrfs.c @@ -94,6 +94,9 @@ static struct Command commands[] = { "-l len defragment only up to len bytes\n" "-t size minimal size of file to be considered for defragmenting\n" }, + { do_get_default_subvol, 1, "subvolume get-default", "\n" + "Get the default subvolume of a filesystem." + }, { do_fssync, 1, "filesystem sync", "\n" "Force a sync on the filesystem .", -- cgit v1.2.3