diff options
author | NeilBrown <neilb@suse.de> | 2008-09-18 16:12:28 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-09-18 16:12:28 +1000 |
commit | 35ddc76dcbcb7ef5f1ca57e557bfa4c3cdf6a6eb (patch) | |
tree | 7469851707ce8fc23c438c10ce6a120d1f7fc5ad /super0.c | |
parent | ff54de6e47163944185f231700e72d3122b58f4c (diff) |
Use common code to report MD_UUID for --detail --export
As we need to be able to extract a UUID from any superblock
for matching, use that as the MD_UUID as it will probably be
used for array matching too.
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -301,18 +301,6 @@ static void brief_detail_super0(struct supertype *st) else printf("%08x", sb->set_uuid0); } - -static void export_detail_super0(struct supertype *st) -{ - mdp_super_t *sb = st->sb; - printf("MD_UUID="); - if (sb->minor_version >= 90) - printf("%08x:%08x:%08x:%08x", sb->set_uuid0, sb->set_uuid1, - sb->set_uuid2, sb->set_uuid3); - else - printf("%08x", sb->set_uuid0); - printf("\n"); -} #endif static int match_home0(struct supertype *st, char *homehost) @@ -1091,7 +1079,6 @@ struct superswitch super0 = { .export_examine_super = export_examine_super0, .detail_super = detail_super0, .brief_detail_super = brief_detail_super0, - .export_detail_super = export_detail_super0, .write_init_super = write_init_super0, .validate_geometry = validate_geometry0, .add_to_super = add_to_super0, |