]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: add ZONED column
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 19 Apr 2017 00:25:58 +0000 (09:25 +0900)
committerKarel Zak <kzak@redhat.com>
Wed, 19 Apr 2017 12:07:03 +0000 (14:07 +0200)
commitf2df436564a5dbd8770855d84a4b361aff7b246f
tree4a030cce33fba8efbc469ccda9d7b7c33784adf4
parent02a376f2eed8e5488bf963231cbc490e5af9537f
lsblk: add ZONED column

Add the column "ZONED" to the output to display block devices zone
model information.

Example output:

> lsblk -o+ZONED
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT ZONED
sda      8:0    0 111.8G  0 disk            none
├─sda1   8:1    0   500M  0 part /boot      none
├─sda2   8:2    0  87.3G  0 part /          none
└─sda3   8:3    0    24G  0 part [SWAP]     none
sdb      8:16   0  12.8T  0 disk            host-managed
sdc      8:32   0   5.5T  0 disk            host-managed

or:

> lsblk --zoned
NAME   ZONED
sda    none
├─sda1 none
├─sda2 none
└─sda3 none
sdb    host-managed
sdc    host-managed

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
misc-utils/lsblk.8
misc-utils/lsblk.c