summaryrefslogtreecommitdiff
path: root/super-recover.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-12-05 10:39:44 +0200
committerDavid Sterba <dsterba@suse.com>2018-01-31 15:14:01 +0100
commit6eccbe81f1baf11e00d55bdf86827c632de4cc5f (patch)
treecf8c0762c085a56207aaaa7d1aea288b8cc91a86 /super-recover.c
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 <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'super-recover.c')
-rw-r--r--super-recover.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/super-recover.c b/super-recover.c
index 6b80416..6a13d81 100644
--- a/super-recover.c
+++ b/super-recover.c
@@ -186,19 +186,6 @@ static struct super_block_record *recover_get_good_super(
return record;
}
-static void print_all_devices(struct list_head *devices)
-{
- struct btrfs_device *dev;
-
- printf("All Devices:\n");
- list_for_each_entry(dev, devices, dev_list) {
- printf("\t");
- printf("Device: id = %llu, name = %s\n",
- dev->devid, dev->name);
- }
- printf("\n");
-}
-
static void print_super_info(struct super_block_record *record)
{
printf("\t\tdevice name = %s\n", record->device_name);