]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Adjust major number testing to allow for extended minor number in 2.6.28
authorNeilBrown <neilb@suse.de>
Thu, 30 Oct 2008 05:37:29 +0000 (16:37 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 30 Oct 2008 05:37:29 +0000 (16:37 +1100)
commit4ebd3237119b1c1d701ea0c94795631883e449ed
tree1d8a361a908f5801cced4616a62e544b84be8d69
parent7b403fef7e97c16e1eb63773a278eb65c6dfd9a8
Adjust major number testing to allow for extended minor number in 2.6.28

From 2.6.28, normal md device will be able to have partitions.  These
partitions will have a different major number.  Sometimes mdadm tests
the major number and so can get confused.
Change these tests to test against get_mdp_major().  mdp does not use
extended minor number and so this test will always be accurate.

Also use /sys/dev links to map major/minor to devnum in sysfs.

Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c
sysfs.c