summaryrefslogtreecommitdiffstats
path: root/sys-utils/wdctl.8
diff options
context:
space:
mode:
authorKarel Zak2019-06-06 11:17:13 +0200
committerKarel Zak2019-06-17 15:47:39 +0200
commitb3dd29d1b878865102c5cb366dd3e814ce043cb9 (patch)
tree46d32f2850fd0b0b14a3f23cdfc12c642a29d2dd /sys-utils/wdctl.8
parentlib/path: make sure ul_path_read_buffer() derminate result (diff)
downloadkernel-qcow2-util-linux-b3dd29d1b878865102c5cb366dd3e814ce043cb9.tar.gz
kernel-qcow2-util-linux-b3dd29d1b878865102c5cb366dd3e814ce043cb9.tar.xz
kernel-qcow2-util-linux-b3dd29d1b878865102c5cb366dd3e814ce043cb9.zip
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>
Diffstat (limited to 'sys-utils/wdctl.8')
-rw-r--r--sys-utils/wdctl.84
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-utils/wdctl.8 b/sys-utils/wdctl.8
index 7edf80866..efd8b5917 100644
--- a/sys-utils/wdctl.8
+++ b/sys-utils/wdctl.8
@@ -14,6 +14,10 @@ Show hardware watchdog status. The default device is
If more than one device is specified then the output is separated by
one blank line.
.PP
+If the device is already used or user has no permissions to read from the device than
+.B wdctl
+reads data from sysfs. In this case information about supported features (flags) might be missing.
+.PP
Note that the number of supported watchdog features is hardware specific.
.SH OPTIONS
.TP