History

btrfs: create sprout should rename fsid on the sysfs as well

Creating sprout will change the fsid of the mounted root. do the same on the sysfs as well. reproducer: mount /dev/sdb /btrfs (seed disk) btrfs dev add /dev/sdc /btrfs mount -o rw,remount /btrfs btrfs dev del /dev/sdb /btrfs mount /dev/sdb /btrfs Error: kobject_add_internal failed for fe350492-dc28-4051-a601-e017b17e6145 with -EEXIST, don't try to register things with the same name in the same directory.

Anand Jain committed 12 years ago

Commit b2373f21 parent 49c6f732 files · +10 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+1−0
@@ -38,6 +38,7 @@ struct btrfs_ioctl_vol_args { · 37 unmodified lines
3838 #define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2)
3939 #define BTRFS_FSID_SIZE 16
4040 #define BTRFS_UUID_SIZE 16
41+#define BTRFS_UUID_UNPARSED_SIZE 37
4142
4243 #define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0)
4344