]> err.no Git - util-linux/commit
libmount: optimize blkid_devno_to_devname()
authorKarel Zak <kzak@redhat.com>
Mon, 25 Oct 2010 21:23:48 +0000 (23:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Oct 2010 21:23:48 +0000 (23:23 +0200)
commite4d5b4b3b44bcfe01291c0b0d32e8ba2f68efc4e
treeffe87a20abb227b93b3bafe4cd0c32e82feb38f1
parenta5fd3d685e6c2d0a7d80e7607ac6ff7bf7d05f67
libmount: optimize blkid_devno_to_devname()

The brutal force /dev directory scanning should be used as a fallback
solution only. Currently, almost all systems use udev and we can read the
name from /sys/block/<maj>:<min> symlink.

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/devno.c