summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-09-18 16:27:34 +0800
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:22:26 -0400
commit77801d34d02e04ea4d5344415015a2ce84e0b653 (patch)
tree6808d39403622ac4129d2090aa02ef7bdeb07e58 /disk-io.h
parente353813b7c7ce23d1dfa6dbc29426843ea5f8382 (diff)
Btrfs-progs: pass flag to control whether run ioctl in btrfs_scan_for_fsid()
If some fatal superblocks are damaged, running ioctl will return failure, in this case, we should avoid run ioctl. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'disk-io.h')
-rw-r--r--disk-io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-io.h b/disk-io.h
index b61eb434..7219c2ef 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -57,7 +57,8 @@ int btrfs_setup_all_roots(struct btrfs_fs_info *fs_info,
void btrfs_release_all_roots(struct btrfs_fs_info *fs_info);
void btrfs_cleanup_all_caches(struct btrfs_fs_info *fs_info);
int btrfs_scan_fs_devices(int fd, const char *path,
- struct btrfs_fs_devices **fs_devices, u64 sb_bytenr);
+ struct btrfs_fs_devices **fs_devices, u64 sb_bytenr,
+ int run_ioctl);
int btrfs_setup_chunk_tree_and_device_map(struct btrfs_fs_info *fs_info);
struct btrfs_root *open_ctree(const char *filename, u64 sb_bytenr, int writes);