path: root/utils.h
diff options
authorNikolay Borisov <>2017-12-05 10:39:44 +0200
committerDavid Sterba <>2018-01-31 15:14:01 +0100
commit6eccbe81f1baf11e00d55bdf86827c632de4cc5f (patch)
treecf8c0762c085a56207aaaa7d1aea288b8cc91a86 /utils.h
parent058fad5b921db273cf56bb34c4482ba99359ef59 (diff)
btrfs-progs: Factor out common print_device_info
This function has been copied twice in chunk-recover and super-recover. Factor it out into utils.c/h and use it. No functional changes. Signed-off-by: Nikolay Borisov <> Reviewed-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'utils.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index bd7484fd..b871c9ff 100644
--- a/utils.h
+++ b/utils.h
@@ -173,6 +173,9 @@ int prefixcmp(const char *str, const char *prefix);
unsigned long total_memory(void);
+void print_device_info(struct btrfs_device *device, char *prefix);
+void print_all_devices(struct list_head *devices);
* Global program state, configurable by command line and available to
* functions without extra context passing.