]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Give each subvol and snapshot their own anonymous devid
authorChris Mason <chris.mason@oracle.com>
Tue, 18 Nov 2008 01:42:26 +0000 (20:42 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 18 Nov 2008 01:42:26 +0000 (20:42 -0500)
commit48cdb63026a154fa446945682aacf7732eb961aa
tree7833927ae6137122bea670544147be6a69f804ad
parent0e646b8d7c936818e8a1514ab380fca98947a1ee
Btrfs: Give each subvol and snapshot their own anonymous devid

Each subvolume has its own private inode number space, and so we need
to fill in different device numbers for each subvolume to avoid confusing
applications.

This commit puts a struct super_block into struct btrfs_root so it can
call set_anon_super() and get a different device number generated for
each root.

btrfs_rename is changed to prevent renames across subvols.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/transaction.c