linux-stable/fs/btrfs
Josef Bacik 6ef5ed0d38 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>
2010-03-15 11:00:08 -04:00
..
acl.c Btrfs: fix a memory leak in btrfs_init_acl 2010-01-28 16:20:39 -05:00
async-thread.c Btrfs: fix deadlock on async thread startup 2009-10-05 09:44:45 -04:00
async-thread.h Btrfs: fix deadlock on async thread startup 2009-10-05 09:44:45 -04:00
btrfs_inode.h Btrfs: Fix disk_i_size update corner case 2009-12-17 12:33:24 -05:00
compat.h
compression.c
compression.h
ctree.c Btrfs: Fix per root used space accounting 2009-12-17 12:33:35 -05:00
ctree.h Btrfs: add ioctl and incompat flag to set the default mount subvol 2010-03-15 11:00:08 -04:00
delayed-ref.c
delayed-ref.h
dir-item.c Btrfs: Pass transaction handle to security and ACL initialization functions 2009-12-17 12:33:34 -05:00
disk-io.c Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
disk-io.h
export.c Btrfs: change how we mount subvolumes 2010-03-15 10:58:13 -04:00
export.h
extent-tree.c Btrfs: Fix oopsen when dropping empty tree. 2010-02-04 11:31:45 -05:00
extent_io.c Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
extent_io.h Btrfs: release delalloc reservations on extent item insertion 2009-10-08 15:21:10 -04:00
extent_map.c Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
extent_map.h
file-item.c
file.c Btrfs: btrfs_mark_extent_written uses the wrong slot 2010-02-12 16:47:19 -05:00
free-space-cache.c Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
free-space-cache.h
hash.h
inode-item.c
inode-map.c
inode.c Btrfs: change how we mount subvolumes 2010-03-15 10:58:13 -04:00
ioctl.c Btrfs: add ioctl and incompat flag to set the default mount subvol 2010-03-15 11:00:08 -04:00
ioctl.h Btrfs: add ioctl and incompat flag to set the default mount subvol 2010-03-15 11:00:08 -04:00
Kconfig
locking.c
locking.h
Makefile
ordered-data.c Btrfs: align offsets for btrfs_ordered_update_i_size 2010-01-17 20:06:27 -05:00
ordered-data.h Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
orphan.c
print-tree.c
print-tree.h
ref-cache.c
ref-cache.h Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
relocation.c Btrfs: change how we mount subvolumes 2010-03-15 10:58:13 -04:00
root-tree.c Btrfs: skip btrfs_release_path in btrfs_update_root and btrfs_del_root 2009-11-11 14:20:18 -05:00
struct-funcs.c
super.c Btrfs: change how we mount subvolumes 2010-03-15 10:58:13 -04:00
sysfs.c
transaction.c Btrfs: use RB_ROOT to intialize rb_trees instead of setting rb_node to NULL 2010-03-08 16:26:50 -05:00
transaction.h Btrfs: Avoid superfluous tree-log writeout 2009-12-15 21:24:25 -05:00
tree-defrag.c
tree-log.c Btrfs: change how we mount subvolumes 2010-03-15 10:58:13 -04:00
tree-log.h Btrfs: avoid tree log commit when there are no changes 2009-10-13 13:35:12 -04:00
version.h
version.sh
volumes.c Btrfs: check total number of devices when removing missing 2010-01-28 16:20:39 -05:00
volumes.h
xattr.c Btrfs: Pass transaction handle to security and ACL initialization functions 2009-12-17 12:33:34 -05:00
xattr.h Btrfs: Pass transaction handle to security and ACL initialization functions 2009-12-17 12:33:34 -05:00
zlib.c