Btrfs-progs: add command to set default subvol
commit7b14bc0f4ffaf64be53b2ee531bb1774502d6a8f
authorJosef Bacik <josef@redhat.com>
Fri, 11 Dec 2009 21:12:07 +0000 (11 21:12 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Mar 2010 00:24:25 +0000 (28 19:24 -0500)
tree1fb2c7e27b7aa3131e2af698318b6abab6b4a3af
parent4ff9e2af1721559ec6a8026f5d52a6c9dea805bf
Btrfs-progs: add command to set default subvol

This introduces a new btrfsctl option, -m, to allow you to set the default'ly
mounted subvolume.  You can do

btrfsctl -m /your/subvolume

and that will make that subvolume the subvolume that is mounted by default, or
you can do

btrfsctl -m <treeid> /any/subvolume

and this will make the subvolume with tree id <treeid> the default'ly mounted
subvolume.  You can get the treeid by using the listing option.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
btrfsctl.c
ioctl.h