diff options
author | NeilBrown <neilb@suse.de> | 2010-08-19 08:48:34 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-09-06 03:26:28 +0200 |
commit | 0f22b998fb9cf8478810b89cd50fa5b4fbf11d38 (patch) | |
tree | a9c28e7b9b983519c83a6fafb638f48536b71683 /Examine.c | |
parent | intel: Don't try to read from tiny devices. (diff) | |
download | mdadm-0f22b998fb9cf8478810b89cd50fa5b4fbf11d38.tar.xz mdadm-0f22b998fb9cf8478810b89cd50fa5b4fbf11d38.zip |
Add mbr pseudo metadata handler.
To support incorpating a new bare device into a collection of arrays -
one partition each - mdadm needs a modest understanding of partition
tables.
The main needs to be able to recognise a partition table on one device
and copy it onto another.
This will be done using pseudo metadata types 'mbr' and 'gpt'.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -100,7 +100,11 @@ int Examine(mddev_dev_t devlist, int brief, int export, int scan, devlist->devname, 0, 0, NULL); /* Ok, its good enough to try, though the checksum could be wrong */ - if (brief) { + if (brief && st->ss->brief_examine_super == NULL) { + if (!scan) + fprintf(stderr, Name ": No brief listing for %s on %s\n", + st->ss->name, devlist->devname); + } else if (brief) { struct array *ap; char *d; for (ap=arrays; ap; ap=ap->next) { |