]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Introduce stat2kname() and fd2kname()
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 29 Mar 2016 13:20:29 +0000 (15:20 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 30 Mar 2016 15:23:52 +0000 (11:23 -0400)
commitf96b13022403b593ce05455b2ebc91429f2d6d0c
tree7dd0ddae6fb9c0473aa4b3ce5e54f880e2da59d1
parent6447a1270547307651b35b1a3828f3ab19cbf191
Introduce stat2kname() and fd2kname()

These are similar to stat2devnm() and fd2devnm() but not limited to md
devices. If the device is a partition they will return its kernel name,
not the whole device's name. For more information see commit:
8d83493 ("Introduce devid2kname - slightly different to devid2devnm.")

Also remove unsued declaration for fmt_devname().

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
lib.c
mdadm.h
super-intel.c