]> 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 09:50:16 +0000 (11:50 +0200)
commit2d728718b7f442bab118353fcc50138e31471fb3
tree92a100ac08d3d38397771048ffbd993a3d5c1e2a
parent1949448a2a054fa79c866d9eb39522fc36b34b5a
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