]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
IMSM metadata really should be ignored when found on partitions.
authorNeilBrown <neilb@suse.de>
Tue, 19 Nov 2013 23:49:14 +0000 (10:49 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 19 Nov 2013 23:49:14 +0000 (10:49 +1100)
commit357ac1067835d1cdd5f80acc28501db0ffc64957
tree52b0514d470fbd02c9e1d32050a4dc96501e7f76
parentbe4a3188f6f21d8aba1704e18fa15d5ea9308c15
IMSM metadata really should be ignored when found on partitions.

commit b31df43682216d1c65813eae49ebdd8253db8907
changed load_super_imsm to not insist on finding a partition if
ignore_hw_compat was set.
Unfortunately this is set for '--assemble' so arrays could get
assembled badly.

The comment says this was to allow e.g. --examine of image files.
A better fixes for this is to change test_partitions to not report
a regular file as being a partition.
The errors from the BLKPG ioctl are:

 ENOTTY : not a block device.
 EINVAL : not a whole device (probably a partition)
 ENXIO  : partition doesn't exist (so not a partition)

Reported-by: "David F." <df7729@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c
util.c