]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: add support for discard topology (-D option)
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 4 May 2011 15:16:05 +0000 (11:16 -0400)
committerKarel Zak <kzak@redhat.com>
Thu, 5 May 2011 08:09:26 +0000 (10:09 +0200)
commit2d2322461c4e46864b28b572e80836ca54ed2f13
tree7aaef9b3fa63f049f292a7f2455948ee34e25ed1
parent5b1f0311234020e07695cee6ba70cc749672b502
lsblk: add support for discard topology (-D option)

I got tired of poking around in sysfs to find the discard topology.
Here's a patch against lsblk that adds a -D option to present this
information in a human-readable form:

NAME                  DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda                          0        0B       0B         0
└─sda1                       0        0B       0B         0
sdb                          0      512B       2G         1
└─sdb1                       0      512B       2G         1

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.8
misc-utils/lsblk.c