]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wdctl; read from /sys if necessary
authorKarel Zak <kzak@redhat.com>
Thu, 6 Jun 2019 09:17:13 +0000 (11:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Jun 2019 13:47:39 +0000 (15:47 +0200)
commitb3dd29d1b878865102c5cb366dd3e814ce043cb9
tree46d32f2850fd0b0b14a3f23cdfc12c642a29d2dd
parente3188dd90a4cd51723fefdcea8c3b82a6e7afc29
wdctl; read from /sys if necessary

The device can be inaccessible for non-root user or busy (already used
by another process). In this case it seems better to read information
from /sys.

Note that /sys does not provide struct watchdog_info.options, so we
cannot print list of supported watchdog features.

Addresses: https://github.com/karelzak/util-linux/issues/804
Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h
sys-utils/wdctl.8
sys-utils/wdctl.c