mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
btrfs: disable the seed feature for temp-fsid
A seed device is an integral component of the sprout device, which functions as a multi-device filesystem. Therefore, temp-fsid feature is not supported. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
000331bb03
commit
c47b02c1bd
@ -571,6 +571,14 @@ static struct btrfs_fs_devices *find_fsid_by_device(
|
||||
if (btrfs_super_num_devices(disk_super) != 1)
|
||||
return fsid_fs_devices;
|
||||
|
||||
/*
|
||||
* A seed device is an integral component of the sprout device, which
|
||||
* functions as a multi-device filesystem. So, temp-fsid feature is
|
||||
* not supported.
|
||||
*/
|
||||
if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING)
|
||||
return fsid_fs_devices;
|
||||
|
||||
/* Try to find a fs_devices by matching devt. */
|
||||
list_for_each_entry(devt_fs_devices, &fs_uuids, fs_list) {
|
||||
struct btrfs_device *device;
|
||||
|
Loading…
Reference in New Issue
Block a user