All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] add columns for zoned parameters
@ 2021-08-27  7:34 Naohiro Aota
  2021-08-27  7:34 ` [PATCH v2 1/3] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Naohiro Aota @ 2021-08-27  7:34 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux, Damien.LeMoal, Naohiro Aota

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-08-30  5:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  7:34 [PATCH v2 0/3] add columns for zoned parameters Naohiro Aota
2021-08-27  7:34 ` [PATCH v2 1/3] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
2021-08-29 23:07   ` Damien Le Moal
2021-08-30  1:21     ` Naohiro Aota
2021-08-27  7:34 ` [PATCH v2 2/3] lsblk: add columns of zoned parameters Naohiro Aota
2021-08-29 23:10   ` Damien Le Moal
2021-08-30  1:08     ` Naohiro Aota
2021-08-30  1:50       ` Damien Le Moal
2021-08-30  5:15         ` Naohiro Aota
2021-08-29 23:15   ` Damien Le Moal
2021-08-27  7:34 ` [PATCH v2 3/3] lsblk: add zoned columns to "lsblk -z" Naohiro Aota
2021-08-29 23:14   ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.