]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: fix -P regression from v2.34
authorKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2020 14:31:23 +0000 (15:31 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 09:49:13 +0000 (11:49 +0200)
commitbbe1b31447f365c78e03937346a8033d778697d3
tree0b72ad4caf68bbc8c37d87ed9c89a63bc06e465d
parent57d5160227fc4792c33bb9fef605939f893678ad
lsblk: fix -P regression from v2.34

Since v2.34 --list prints devices only once to make the output
user-readable. Unfortunately, it's regression for scripts/applications
where we need to parse lsblk output. So, let's make --pairs and --raw
backwardly compatible with versions before 2.34 and print all hierarchy.

Addresses: https://github.com/ibm-s390-tools/s390-tools/issues/80
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.8
misc-utils/lsblk.c