~csurbhi/junk/mdadm.fixes

Viewing all changes in revision 10.

  • Committer: Surbhi Palande
  • Author(s): NeilBrown
  • Date: 2010-09-24 09:47:21 UTC
  • Revision ID: git-v1:b2efbcca214ec6b11b7fef41b7b2b5d77ae902ca
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.

Neil Brown: 4ebd3237119b1c1d701ea0c94795631883e449ed

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: