summaryrefslogtreecommitdiff
path: root/Kill.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-08-19 16:48:34 +1000
committerNeilBrown <neilb@suse.de>2010-09-06 11:26:28 +1000
commit0f22b998fb9cf8478810b89cd50fa5b4fbf11d38 (patch)
treea9c28e7b9b983519c83a6fafb638f48536b71683 /Kill.c
parent64436f0628a14f4e979b93bea57aba4b4c6143e8 (diff)
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 'Kill.c')
-rw-r--r--Kill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kill.c b/Kill.c
index 3d1810f0..f5c30e97 100644
--- a/Kill.c
+++ b/Kill.c
@@ -53,7 +53,7 @@ int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl)
}
if (st == NULL)
st = guess_super(fd);
- if (st == NULL) {
+ if (st == NULL || st->ss->init_super == NULL) {
if (!quiet)
fprintf(stderr, Name ": Unrecognised md component device - %s\n", dev);
close(fd);