]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/sysfs: rename devname functions, cleanup
authorKarel Zak <kzak@redhat.com>
Thu, 28 May 2015 10:09:41 +0000 (12:09 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 28 May 2015 10:09:41 +0000 (12:09 +0200)
commit6c62abc42bb1c2aad60d0da1ce3f7498ac48cd1b
tree54c6cbf4b0a972c7bf63ae2da33077ad7d9f307e
parent759b120d85c30ec6ab80097c251677b022c5a03c
lib/sysfs: rename devname functions, cleanup

Well, I don't have mental power to use function names like

 sysfs_devname_to_dev_name()

so this patch renames to

 sysfs_devname_sys_to_dev()
 sysfs_devname_dev_to_sys()

It also cleanups usage of the functions. We have to be sure that
sysfs.c code returns regular devnames. The existence of the sysfs
devnames (with '!') should be completely hidden in sysfs specific
code.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/sysfs.h
lib/sysfs.c
libblkid/src/devno.c
misc-utils/lsblk.c