Message ID | 52FD1AD0.70201@libero.it (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Thu, Feb 13, 2014 at 08:19:44PM +0100, Goffredo Baroncelli wrote: > > Allow the use of get_device_info() for different units. FYI, I'll move this patch to integration base, it's a simple and isolated change. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/utils.c b/utils.c index 760db6b..69295b5 100644 --- a/utils.c +++ b/utils.c @@ -1591,7 +1591,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 0f7939c..58fb4a7 100644 --- a/utils.h +++ b/utils.h @@ -97,4 +97,6 @@ int btrfs_scan_lblkid(int update_kernel); int get_btrfs_mount(const char *dev, char *mp, size_t mp_size); u64 disk_size(char *path); +int get_device_info(int fd, u64 devid, + struct btrfs_ioctl_dev_info_args *di_args); #endif
Allow the use of get_device_info() for different units. Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it> --- utils.c | 2 +- utils.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)