summaryrefslogtreecommitdiff
path: root/Examine.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-05-06 10:02:38 +1000
committerNeil Brown <neilb@suse.de>2008-05-06 10:02:38 +1000
commit0d726f17e191094665a5f2af8c2564dedb990502 (patch)
tree6523336fa8443c6769d3ea02301899de5d461134 /Examine.c
parent9a02c62af93879d7fe4f3740bcde2e01fbccc960 (diff)
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Examine.c b/Examine.c
index 276e0fa9..5de92028 100644
--- a/Examine.c
+++ b/Examine.c
@@ -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);