summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorZhong, Xin <xin.zhong@intel.com>2011-07-12 10:48:37 +0800
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:59 -0400
commita70b0b2bba94fe62541cc21a9afe35015521fcc3 (patch)
tree05f06902dc03b312baa40d264cd1d9e2c019a105 /btrfs.c
parentfdbebea13bca4bdd4ec4bd37fc469d2ba589a9a1 (diff)
downloadbtrfs-progs-a70b0b2bba94fe62541cc21a9afe35015521fcc3.tar.gz
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 <philipp.andreas@gmail.com> Reviewed-by: Goffredo Baroncelli <kreijack@libero.it> Reported-by: Yang, Yi <yi.y.yang@intel.com> Signed-off-by: Zhong, Xin <xin.zhong@intel.com>
Diffstat (limited to 'btrfs.c')
-rw-r--r--btrfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/btrfs.c b/btrfs.c
index a3f9a01..a48f07b 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", "<path>\n"
+ "Get the default subvolume of a filesystem."
+ },
{ do_fssync, 1,
"filesystem sync", "<path>\n"
"Force a sync on the filesystem <path>.",