Btrfs-progs: pass flag to control whether run ioctl in btrfs_scan_for_fsid()
[platform/upstream/btrfs-progs.git] / disk-io.h
index b61eb43..7219c2e 100644 (file)
--- 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);