]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: add process_all_devices_inverse()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Oct 2018 13:53:22 +0000 (15:53 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Dec 2018 11:32:58 +0000 (12:32 +0100)
commite7b5353e8b7c17e4efc742e6458bbf3321ce0f42
treef460fbbcbeeb3e0f71d26c1734f877046695bc6f
parent93c687d895752582bd95ef52a53684b346f2cc70
lsblk: add process_all_devices_inverse()

This is necessary to implement --inverse. Note that this new
implementation scans /sys/dev/block/ to get top-level devices
and than it calls process_one_device().

Note that standard non-inverse tree does not use process_one_device()
as it's more effective to scan /sys/block where are no partitions.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c