]> git.neil.brown.name Git - mdadm.git/commit
Fix --incremental assembly of partitions arrays.
authorNeilBrown <neilb@suse.de>
Wed, 29 Oct 2008 22:34:04 +0000 (09:34 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 29 Oct 2008 22:34:04 +0000 (09:34 +1100)
commit2b4ca8f079335c1b3f345ec13da58699aaa0269d
tree290c0814ec02b3f81ff7148cc413c7ca6a55ef27
parent43aaf431f66270080368d4b33378bd3dc0fa1c96
Fix --incremental assembly of partitions arrays.

If incremental assembly finds an array mentioned in mdadm.conf,
with a 'standard partitioned' name like /dev/md_d0 or /dev/md/d0,
it will not create a partitioned array like it should.
This is because it mishandled the 'devnum' returned by
is_standard.
That is a devnum that does not have the partition-or-not encoded
into it.  So we need to check the actual return value of
is_standard and encode the partition-or-not info into the devnum.

Also fix a couple of comments.

Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c
util.c