]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Introduce devid2kname - slightly different to devid2devnm.
authorNeilBrown <neilb@suse.de>
Thu, 1 Aug 2013 04:32:04 +0000 (14:32 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 1 Aug 2013 04:32:04 +0000 (14:32 +1000)
commitbc17158dcc9eac6eed4b84d1f41d1dcaa108cb9b
tree31d02887a1d5f157272385af8015efbb35c7ee5b
parent879982efa90c8cf6b7afc708316cf47c4247bfe3
Introduce devid2kname - slightly different to devid2devnm.

The purpose od devid2devnm is to return a kernel name of an
md device, whether that device is a whole device or a partition,
we want the whole device.  md4, never md4p2.

In one place I was using devid2devnm where I really wanted the
partition if there was one ... and wasn't really interested in it
being an md device.
So introduce a new 'devid2kname' for that case.

Signed-off-by: NeilBrown <neilb@suse.de>
lib.c
mdadm.h
sysfs.c