btrfs-progs: Allow use of get_device_info()

Allow the use of get_device_info() for different units.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Goffredo Baroncelli 2014-02-13 20:19:44 +01:00 committed by Chris Mason
parent 002d5e1430
commit 4701f52390
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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