Several parameters for zoned devices are missing from lsblk's columns. This series introduces them as following. Column Name Description Sysfs path ------------------------------------------------------------------ ZONE-SZ zone size queue/chunk_sectors ZONE-GRAN zone write granularity queue/zone_write_granularity ZONE-APP zone append max bytes queue/zone_append_max_bytes ZONE-NR number of zones queue/nr_zones ZONE-OMAX max open zones queue/max_open_zones ZONE-AMAX max active zones queue/max_active_zones These columns are also added to the "-z" output. Sample output: $ lsblk -z -i NAME ZONED ZONE-SZ ZONE-NR ZONE-AMAX ZONE-OMAX ZONE-APP ZONE-GRAN sda host-managed 256M 55880 0 128 672K 4K sdb host-managed 256M 55880 0 128 672K 4K zram0 none 0B 0 0 0 0B 0B nvme2n1 none 0B 0 0 0 0B 0B |-nvme2n1p1 none 0B 0 0 0 0B 0B |-nvme2n1p2 none 0B 0 0 0 0B 0B `-nvme2n1p3 none 0B 0 0 0 0B 0B nvme0n1 none 0B 0 0 0 0B 0B nvme1n1 none 0B 0 0 0 0B 0B nvme0n2 host-managed 2G 1844 14 14 4M 4K nvme1n2 host-managed 2G 1844 14 14 4M 4K $ lsblk --help|grep -i zone -z, --zoned print zone model ZONED zone model ZONE-SZ zone size ZONE-GRAN zone write granularity ZONE-APP zone append max bytes ZONE-NR number of zones ZONE-OMAX max open zones ZONE-AMAX max active zones Naohiro Aota (3): lsblk: factor out function to read sysfs param as bytes lsblk: add columns of zoned parameters lsblk: add zoned columns to "lsblk -z" bash-completion/lsblk | 3 +- misc-utils/lsblk.8.adoc | 2 +- misc-utils/lsblk.c | 103 ++++++++++++++++++++++++++++++---------- 3 files changed, 81 insertions(+), 27 deletions(-) -- 2.33.0