See fopr example: https://github.com/karelzak/util-linux/issues/616
-cleanup lib/path.c: [Karel Zak for v2.33]
-------------------
- - always return rc from all functions
- - introduce control struct and use openat() from top-level path
- (e.g. top-level is /proc, etc)
- - use lib/path.c as low-level API for lib/sysfs.c
- - now we duplicate code in functions like {path,sysfs}_read_u32, etc.
- - it would be also nice to have a way how to redirect sysfs.c functions
- to /sys snapshots (e.g. lsblk regression tests)
-
-
lscpu
-----
- read cpuid and uname information from file if --sysroot is specified, then
lsblk
-----
- - add --sysroot to read sysfs data from dumps rather than from a real sysfs
- - add regression tests based on --sysroot
-
- re-write the way how lsblk internally holds info about devices. Now we
compose only output (by libsmartcols). It would be better to have in memory
complete tree of the devices and generate the output from this tree. It will