From: Goffredo Baroncelli Date: Thu, 13 Feb 2014 19:19:44 +0000 (+0100) Subject: btrfs-progs: Allow use of get_device_info() X-Git-Tag: upstream/4.16.1~2947 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4701f523907753a54270a657d40f16f06b3c23c4;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/utils.c b/utils.c index 398678f..cbbe465 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 888ebe8..3c62066 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