path: root/cmds-fi-usage.h
diff options
authorMisono, Tomohiro <>2017-10-23 13:44:01 +0900
committerDavid Sterba <>2017-11-14 15:59:00 +0100
commit94afa11d832901cd63766ec38b60752058722a7b (patch)
treeaa5f6723aea25fad43fdad02ab3613568c6a06da /cmds-fi-usage.h
parent766e4ed597c4037dc344dd966a32402764f23550 (diff)
btrfs-progs: fi: move dev_to_fsid to cmds-fi-usage for later use
Move dev_to_fsid() from cmds-filesystem.c to cmds-fi-usage.c in order to call it from both "fi show" and "fi usage". Signed-off-by: Tomohiro Misono <> Reviewed-by: Anand Jain <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-fi-usage.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-fi-usage.h b/cmds-fi-usage.h
index a399517f..0e82951e 100644
--- a/cmds-fi-usage.h
+++ b/cmds-fi-usage.h
@@ -50,5 +50,6 @@ void print_device_chunks(struct device_info *devinfo,
struct chunk_info *chunks_info_ptr,
int chunks_info_count, unsigned unit_mode);
void print_device_sizes(struct device_info *devinfo, unsigned unit_mode);
+int dev_to_fsid(const char *dev, __u8 *fsid);