diff options
author | Josef Bacik <josef@redhat.com> | 2009-12-11 21:12:07 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-02-28 19:24:25 -0500 |
commit | 7b14bc0f4ffaf64be53b2ee531bb1774502d6a8f (patch) | |
tree | 1fb2c7e27b7aa3131e2af698318b6abab6b4a3af /ioctl.h | |
parent | 4ff9e2af1721559ec6a8026f5d52a6c9dea805bf (diff) |
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>
Diffstat (limited to 'ioctl.h')
-rw-r--r-- | ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -126,4 +126,5 @@ struct btrfs_ioctl_ino_lookup_args { struct btrfs_ioctl_search_args) #define BTRFS_IOC_INO_LOOKUP _IOWR(BTRFS_IOCTL_MAGIC, 18, \ struct btrfs_ioctl_ino_lookup_args) +#define BTRFS_IOC_DEFAULT_SUBVOL _IOW(BTRFS_IOCTL_MAGIC, 19, u64) #endif |