]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: fix reporting of 'part' type
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 21 Sep 2012 12:23:32 +0000 (14:23 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Oct 2012 08:23:51 +0000 (10:23 +0200)
commit8d687180b2efc4331bb9ce3145c207de0606815e
treeb3777769c9399c8ede3b236b4a5b2a080a43f79d
parent705ee62ff03a083ea7c06159420b7a71b0b20902
lsblk: fix reporting of 'part' type

Partitions are incorrectly marked with 'disk' type on
lsblk output while it should be marked as 'part' type.

Before:
$ lsblk /dev/sda
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  128M  0 disk
`-sda1   8:1    0   64M  0 disk

With this patch applied:
$ lsblk /dev/sda
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  128M  0 disk
`-sda1   8:1    0   64M  0 part

Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
misc-utils/lsblk.c