diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-10-02 03:50:43 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-10-15 23:43:56 +0200 |
commit | 27fd6274148a492a46fa11adcadc2d4079be6f67 (patch) | |
tree | aed07b0fbc2178ff60c73bd5df0c4d8ed1922415 /super-intel.c | |
parent | fname_as_uuid: print uuids msb first (diff) | |
download | mdadm-27fd6274148a492a46fa11adcadc2d4079be6f67.tar.xz mdadm-27fd6274148a492a46fa11adcadc2d4079be6f67.zip |
imsm: show uuid in ->examine_super()
...and add "auto=md" to the brief output.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/super-intel.c b/super-intel.c index 2ce39835..108f0b4f 100644 --- a/super-intel.c +++ b/super-intel.c @@ -493,6 +493,8 @@ static __u32 imsm_reserved_sectors(struct intel_super *super, struct dl *dl) } #ifndef MDASSEMBLE +static void getinfo_super_imsm(struct supertype *st, struct mdinfo *info); + static void print_imsm_dev(struct imsm_dev *dev, int index) { __u64 sz; @@ -571,15 +573,21 @@ static void examine_super_imsm(struct supertype *st, char *homehost) struct imsm_super *mpb = super->anchor; char str[MAX_SIGNATURE_LENGTH]; int i; + struct mdinfo info; + char nbuf[64]; __u32 sum; __u32 reserved = imsm_reserved_sectors(super, super->disks); + snprintf(str, MPB_SIG_LEN, "%s", mpb->sig); printf(" Magic : %s\n", str); snprintf(str, strlen(MPB_VERSION_RAID0), "%s", get_imsm_version(mpb)); printf(" Version : %s\n", get_imsm_version(mpb)); printf(" Family : %08x\n", __le32_to_cpu(mpb->family_num)); printf(" Generation : %08x\n", __le32_to_cpu(mpb->generation_num)); + getinfo_super_imsm(st, &info); + fname_from_uuid(st, &info, nbuf,'-'); + printf(" UUID : %s\n", nbuf + 5); sum = __le32_to_cpu(mpb->check_sum); printf(" Checksum : %08x %s\n", sum, __gen_imsm_checksum(mpb) == sum ? "correct" : "incorrect"); @@ -611,14 +619,13 @@ static void getinfo_super_imsm(struct supertype *st, struct mdinfo *info); static void brief_examine_super_imsm(struct supertype *st) { - /* We just write a generic DDF ARRAY entry - */ + /* We just write a generic IMSM ARRAY entry */ struct mdinfo info; char nbuf[64]; getinfo_super_imsm(st, &info); fname_from_uuid(st, &info, nbuf,'-'); - printf("ARRAY /dev/imsm metadata=imsm UUID=%s\n", nbuf + 5); + printf("ARRAY /dev/imsm metadata=imsm auto=md UUID=%s\n", nbuf + 5); } static void detail_super_imsm(struct supertype *st, char *homehost) |