diff options
author | Zhong, Xin <xin.zhong@intel.com> | 2011-07-12 10:48:37 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-10-25 09:18:59 -0400 |
commit | a70b0b2bba94fe62541cc21a9afe35015521fcc3 (patch) | |
tree | 05f06902dc03b312baa40d264cd1d9e2c019a105 /btrfs.c | |
parent | fdbebea13bca4bdd4ec4bd37fc469d2ba589a9a1 (diff) | |
download | btrfs-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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>.", |