path: root/utils.h
diff options
authorStefan Behrens <>2012-05-15 12:05:44 +0200
committerDavid Sterba <>2013-01-30 00:40:35 +0100
commit7a69dc4eecfd52841b11e0f9312f62d17e3479f5 (patch)
treebc833b0d2699568054fe6d3b352f255e6d35f069 /utils.h
parent46e3b8087b86ef555b13be6807c34c555171fc4a (diff)
Btrfs-progs: make two utility functions globally available
Two convenient utility functions that have so far been local to scrub are moved to utils.c. They will be used in the device stats code in a following commit. Signed-off-by: Stefan Behrens <>
Diffstat (limited to 'utils.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index ed43e846..2d2c23d2 100644
--- a/utils.h
+++ b/utils.h
@@ -49,4 +49,8 @@ int get_mountpt(char *dev, char *mntpt, size_t size);
int btrfs_scan_block_devices(int run_ioctl);
u64 parse_size(char *s);
int open_file_or_dir(const char *fname);
+int get_device_info(int fd, u64 devid,
+ struct btrfs_ioctl_dev_info_args *di_args);
+int get_fs_info(int fd, char *path, struct btrfs_ioctl_fs_info_args *fi_args,
+ struct btrfs_ioctl_dev_info_args **di_ret);