diff options
author | NeilBrown <neilb@suse.de> | 2012-10-25 16:32:00 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-25 16:32:17 +1100 |
commit | ecdf2d790126fb2b36897451638425208a0ff9eb (patch) | |
tree | 2791b13d3747a2cd372b7c9bdd15f30122ca47d8 | |
parent | eb48676077b7108cde236dbcc16f9a02ea143bbb (diff) | |
download | mdadm-ecdf2d790126fb2b36897451638425208a0ff9eb.tar.gz |
Query: don't be confused by partition tables.
Now that we recognise partition tables as a sort of metadata
we need to be careful in --query not to say that a device
with a partition table looks like a device in an array.
Testing ->compare_super for NULL is an easy way to do that.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | Query.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -82,7 +82,7 @@ int Query(char *dev) array.spare_disks, array.spare_disks==1?"":"s"); } st = guess_super(fd); - if (st) + if (st && st->ss->compare_super != NULL) superror = st->ss->load_super(st, fd, dev); else superror = -1; |