From 4701f523907753a54270a657d40f16f06b3c23c4 Mon Sep 17 00:00:00 2001 From: Goffredo Baroncelli Date: Thu, 13 Feb 2014 20:19:44 +0100 Subject: [PATCH] btrfs-progs: Allow use of get_device_info() Allow the use of get_device_info() for different units. Signed-off-by: Goffredo Baroncelli Signed-off-by: David Sterba Signed-off-by: Chris Mason --- utils.c | 2 +- utils.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 398678f1..cbbe4655 100644 --- a/utils.c +++ b/utils.c @@ -1641,7 +1641,7 @@ void close_file_or_dir(int fd, DIR *dirstream) close(fd); } -static int get_device_info(int fd, u64 devid, +int get_device_info(int fd, u64 devid, struct btrfs_ioctl_dev_info_args *di_args) { int ret; diff --git a/utils.h b/utils.h index 888ebe89..3c62066a 100644 --- a/utils.h +++ b/utils.h @@ -98,5 +98,7 @@ int lookup_ino_rootid(int fd, u64 *rootid); int btrfs_scan_lblkid(int update_kernel); int get_btrfs_mount(const char *dev, char *mp, size_t mp_size); int find_mount_root(const char *path, char **mount_root); +int get_device_info(int fd, u64 devid, + struct btrfs_ioctl_dev_info_args *di_args); #endif