]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: factor out function to read sysfs param as bytes
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 30 Aug 2021 05:52:55 +0000 (14:52 +0900)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Aug 2021 08:23:47 +0000 (10:23 +0200)
commitabb6e8e67a8d14a13cff7582bad4f9c8f3507b77
treeaa4e12f17a6758ea00f3ccd5cdfa871740404178
parent28d6722d930566429f9f371c05ca7101b9af3b36
lsblk: factor out function to read sysfs param as bytes

Factor out a new function device_read_bytes() to read a sysfs path as bytes
for a preparation for the next commit and to reduce the code duplication.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
misc-utils/lsblk.c