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:
parent
002d5e1430
commit
4701f52390
2
utils.c
2
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;
|
||||
|
|
2
utils.h
2
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
|
||||
|
|
Loading…
Reference in New Issue