diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-06 10:02:38 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-05-06 10:02:38 +1000 |
commit | 0d726f17e191094665a5f2af8c2564dedb990502 (patch) | |
tree | 6523336fa8443c6769d3ea02301899de5d461134 /Examine.c | |
parent | 9a02c62af93879d7fe4f3740bcde2e01fbccc960 (diff) | |
download | mdadm-0d726f17e191094665a5f2af8c2564dedb990502.tar.gz mdadm-0d726f17e191094665a5f2af8c2564dedb990502.tar.xz mdadm-0d726f17e191094665a5f2af8c2564dedb990502.zip |
add --export option to --examine
From: Kay Sievers <kay.sievers@vrfy.org>
Cc: David Zeuthen <david@fubar.dk>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -35,7 +35,7 @@ #endif #include "md_u.h" #include "md_p.h" -int Examine(mddev_dev_t devlist, int brief, int scan, +int Examine(mddev_dev_t devlist, int brief, int export, int scan, int SparcAdjust, struct supertype *forcest, char *homehost) { @@ -102,6 +102,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, st->ss->update_super(st, NULL, "sparc2.2", devlist->devname, 0, 0, NULL); /* Ok, its good enough to try, though the checksum could be wrong */ + if (brief) { struct array *ap; char *d; @@ -126,6 +127,8 @@ int Examine(mddev_dev_t devlist, int brief, int scan, ap->spares++; d = dl_strdup(devlist->devname); dl_add(ap->devs, d); + } else if (export) { + st->ss->export_examine_super(st); } else { printf("%s:\n",devlist->devname); st->ss->examine_super(st, homehost); |