X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;ds=sidebyside;f=super1.c;h=96d5b1b016a67715310f05c8e3cc81b1a9eb55d6;hb=7103b9b88d8c27989e17c80d7296eda97370dc1e;hp=3ace6fc797a1fc6a1f88b866ec2a1dfa333fdfe9;hpb=9eafa1de73d1bd0b2ac0275d1389824825647df7;p=thirdparty%2Fmdadm.git diff --git a/super1.c b/super1.c index 3ace6fc7..96d5b1b0 100644 --- a/super1.c +++ b/super1.c @@ -485,7 +485,12 @@ static void brief_examine_super1(struct supertype *st, int verbose) else nm = NULL; - printf("ARRAY%s%s", nm ? " /dev/md/":"", nm); + printf("ARRAY "); + if (nm) { + printf("/dev/md/"); + print_escape(nm); + putchar(' '); + } if (verbose && c) printf(" level=%s", c); sb_offset = __le64_to_cpu(sb->super_offset); @@ -502,8 +507,10 @@ static void brief_examine_super1(struct supertype *st, int verbose) if ((i&3)==0 && i != 0) printf(":"); printf("%02x", sb->set_uuid[i]); } - if (sb->set_name[0]) - printf(" name=%.32s", sb->set_name); + if (sb->set_name[0]) { + printf(" name="); + print_quoted(sb->set_name); + } printf("\n"); } @@ -584,8 +591,10 @@ static void brief_detail_super1(struct supertype *st) struct mdp_superblock_1 *sb = st->sb; int i; - if (sb->set_name[0]) - printf(" name=%.32s", sb->set_name); + if (sb->set_name[0]) { + printf(" name="); + print_quoted(sb->set_name); + } printf(" UUID="); for (i=0; i<16; i++) { if ((i&3)==0 && i != 0) printf(":");