]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: inform about depencency to /sys/dev/block
authorSami Kerola <kerolasa@iki.fi>
Wed, 5 Oct 2011 13:37:48 +0000 (15:37 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Oct 2011 12:51:26 +0000 (14:51 +0200)
commitf65b3bb6257bb0885fd8bfe3bd6f0f4b2739d4b4
treeb08de834b0df710ee988e4f7dcdfe4f0b3709dee
parent640fc1b8194e9d7f10302f19cba8d7671c8b1e9d
lsblk: inform about depencency to /sys/dev/block

The lsblk depends on /sys/dev/block/ symlinks, which appeared in
kernel 2.6.27.  Users with old, or non-sysfs configured, kernel
got ealier message

lsblk: md0: failed to initialize sysfs handler
lsblk: xvda: failed to initialize sysfs handler
[...]

that I found a little too difficult to understand.  This patch will
change the message to

lsblk: failed to access sysfs directory: /sys/dev/block: No such file or directory

and informs in manual page what could be reason to that.

[kzak@redhat.com: - use access() rather than opendir()]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.8
misc-utils/lsblk.c