diff options
author | Karel Zak | 2019-06-06 11:17:13 +0200 |
---|---|---|
committer | Karel Zak | 2019-06-17 15:47:39 +0200 |
commit | b3dd29d1b878865102c5cb366dd3e814ce043cb9 (patch) | |
tree | 46d32f2850fd0b0b14a3f23cdfc12c642a29d2dd /include | |
parent | lib/path: make sure ul_path_read_buffer() derminate result (diff) | |
download | kernel-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 'include')
-rw-r--r-- | include/pathnames.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index 6f091d5f0..2e1f19355 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -104,6 +104,7 @@ #define _PATH_SYS_BLOCK "/sys/block" #define _PATH_SYS_DEVBLOCK "/sys/dev/block" +#define _PATH_SYS_DEVCHAR "/sys/dev/char" #define _PATH_SYS_CLASS "/sys/class" #define _PATH_SYS_SCSI "/sys/bus/scsi" |