search for: btrfs_read_super_device

Displaying 1 result from an estimated 1 matches for "btrfs_read_super_device".

2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...if (memcmp(fs_uuid, root->fs_info->fsid, BTRFS_UUID_SIZE)) { - ret = open_seed_devices(root, fs_uuid); + ret = open_seed_devices(root, fs_uuid, check_mount); if (ret) return ret; } @@ -1311,13 +1326,13 @@ static int read_one_dev(struct btrfs_root *root, return ret; } -int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf) +int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf, int check_mount) { struct btrfs_dev_item *dev_item; dev_item = (struct btrfs_dev_item *)offsetof(struct btrfs_super_block, dev_item); - return read...