]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Avoid misdetection of overlapping partitions...
authorNeil Brown <neilb@suse.de>
Fri, 2 Jun 2006 06:58:39 +0000 (06:58 +0000)
committerNeil Brown <neilb@suse.de>
Fri, 2 Jun 2006 06:58:39 +0000 (06:58 +0000)
commit6a255b69be733fa43fe34a9fc9785817a88e935d
tree50d523f507d82f6538296c967302a0ead32b19fc
parent8268ed740379a94300d20db6f1df1702320fe6fd
Avoid misdetection of overlapping partitions...

As version-0.90 superblock don't record the superblock
offset, it is possible for overlapping partitions,
or a partition that starts on a 64K boundary in the whole device
to result in mis-detection - one partition or device might
be detected where the other was intended.

To avoid this awkward possibility, we reject assembly attempts
which seem to have two devices that are different but have the
same version-0.90 superblock.

To avoid this problem altogether, switch to version-1 metadata.

Signed-off-by: Neil Brown <neilb@suse.de>
Assemble.c