util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] add columns for zoned parameters
@ 2021-08-30  5:52 Naohiro Aota
  2021-08-30  5:52 ` [PATCH v3 1/3] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Naohiro Aota @ 2021-08-30  5:52 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-WGRAN     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      maximum number of open zones    queue/max_open_zones
 ZONE-AMAX      maximum number of 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-WGRAN
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 related information
        ZONED  zone model
      ZONE-SZ  zone size
   ZONE-WGRAN  zone write granularity
     ZONE-APP  zone append max bytes
      ZONE-NR  number of zones
    ZONE-OMAX  maximum number of open zones
    ZONE-AMAX  maximum number of 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      | 104 ++++++++++++++++++++++++++++++----------
 3 files changed, 82 insertions(+), 27 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2021-08-31  8:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  5:52 [PATCH v3 0/3] add columns for zoned parameters Naohiro Aota
2021-08-30  5:52 ` [PATCH v3 1/3] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
2021-08-30  5:52 ` [PATCH v3 2/3] lsblk: add columns of zoned parameters Naohiro Aota
2021-08-30  6:22   ` Damien Le Moal
2021-08-30  5:52 ` [PATCH v3 3/3] lsblk: add zoned columns to "lsblk -z" Naohiro Aota
2021-08-31  8:48 ` [PATCH v3 0/3] add columns for zoned parameters Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).