Description of problem: lsblk -ls used to output the child first, then the parent, but now it outputs the parent first, then the child. Consider a block disk with a single partition on it. Lsblk lists the disk before the partition both as a tree and as a list: # lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100M 0 disk └─sda1 8:1 0 100M 0 part # lsblk -l /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100M 0 disk sda1 8:1 0 100M 0 part However, when using inverse order (-s), the tree and list show different output order: # lsblk -s /dev/sda1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda1 8:1 0 100M 0 part └─sda 8:0 0 100M 0 disk # lsblk -sl /dev/sda1 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100M 0 disk sda1 8:1 0 100M 0 part Now the parent comes first with -sl, but last with just -s. The parent used to always come last. We use lsblk in a script to walk up the dependency tree of a block device and used to assume that -sl orders its output from children to parent. If this isn't a regression in lsblk, it would be nice to document how -l orders its output. Version-Release number of selected component (if applicable): util-linux-2.29.1-2.fc26.x86_64 How reproducible: Always Steps to Reproduce: See above
Seems like a real unwanted regression.
Fixed by upstream commits: https://github.com/karelzak/util-linux/commit/091683a82f85b4cc81a829b2c1155d4d09cf03cd https://github.com/karelzak/util-linux/commit/091683a82f85b4cc81a829b2c1155d4d09cf03cd Fedora rpms will be updated ASAP. Thanks!
https://github.com/karelzak/util-linux/commit/066f46e0eeea248274be1c5d6a2ddc731bcff1b3
Thanks!
> Fedora rpms will be updated ASAP. Thanks! I don't see the updated rpms anywhere. Am I missing something?
util-linux-2.30-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d905dbef8
It was too late to push a new upstream release to f26. Now the package is between updates for f26 and in rawhide (f27). Sorry, for the delay.
util-linux-2.30-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d905dbef8
util-linux-2.30-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.