diff options
author | Josef Bacik <josef@redhat.com> | 2009-12-11 16:11:29 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-03-15 11:00:08 -0400 |
commit | 6ef5ed0d386be5c43ec66d6f2999919c0893558b (patch) | |
tree | 7ec391a0525506eb03bcbb0b5e19709f530b0b74 /fs/btrfs/ioctl.h | |
parent | 73f73415caddbc01d9f10c03e0a677d5b3d11569 (diff) |
Btrfs: add ioctl and incompat flag to set the default mount subvol
This patch needs to go along with my previous patch. This lets us set the
default dir item's location to whatever root we want to use as our default
mounting subvol. With this we don't have to use mount -o subvol=<tree id>
anymore to mount a different subvol, we can just set the new one and it will
just magically work. I've done some moderate testing with this, mostly just
switching the default mount around, mounting subvols and the default mount at
the same time and such, everything seems to work. Thanks,
Older kernels would generally be able to still mount the filesystem with the
default subvolume set, but it would result in a different volume being mounted,
which could be an even more unpleasant suprise for users. So if you set your
default subvolume, you can't go back to older kernels. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r-- | fs/btrfs/ioctl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index 79c07b104f91..f1923e0260e3 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h | |||
@@ -1,3 +1,4 @@ | |||
1 | |||
1 | /* | 2 | /* |
2 | * Copyright (C) 2007 Oracle. All rights reserved. | 3 | * Copyright (C) 2007 Oracle. All rights reserved. |
3 | * | 4 | * |
@@ -133,4 +134,5 @@ struct btrfs_ioctl_clone_range_args { | |||
133 | struct btrfs_ioctl_search_args) | 134 | struct btrfs_ioctl_search_args) |
134 | #define BTRFS_IOC_INO_LOOKUP _IOWR(BTRFS_IOCTL_MAGIC, 18, \ | 135 | #define BTRFS_IOC_INO_LOOKUP _IOWR(BTRFS_IOCTL_MAGIC, 18, \ |
135 | struct btrfs_ioctl_ino_lookup_args) | 136 | struct btrfs_ioctl_ino_lookup_args) |
137 | #define BTRFS_IOC_DEFAULT_SUBVOL _IOW(BTRFS_IOCTL_MAGIC, 19, u64) | ||
136 | #endif | 138 | #endif |