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>
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;