All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] add columns for zoned parameters
@ 2021-08-24  1:17 Naohiro Aota
  2021-08-24  1:17 ` [PATCH 1/2] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Naohiro Aota @ 2021-08-24  1:17 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux, 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-SIZE        zone size               queue/chunk_sectors
 ZONE-WGRAN       zone write granularity  queue/zone_write_granularity
 ZONE-APPEND      zone append max bytes   queue/zone_append_max_bytes
 ZONES-NR         number of zones         queue/nr_zones
 ZONES-OMAX       max open zones          queue/max_open_zones
 ZONES-AMAX       max active zones        queue/max_active_zones

Sample output:

$ lsblk -o NAME,ZONED,ZONE-SIZE,ZONE-WGRAN,ZONE-APPEND,ZONES-NR,ZONES-OMAX,ZONES-AMAX -i
NAME        ZONED        ZONE-SIZE ZONE-WGRAN ZONE-APPEND ZONES-NR ZONES-OMAX ZONES-AMAX
sda         host-managed      256M         4K        672K    55880        128          0
sdb         host-managed      256M         4K        672K    55880        128          0
zram0       none                0B         0B          0B        0          0          0
nvme2n1     none                0B         0B          0B        0          0          0
|-nvme2n1p1 none                0B         0B          0B        0          0          0
|-nvme2n1p2 none                0B         0B          0B        0          0          0
`-nvme2n1p3 none                0B         0B          0B        0          0          0
nvme0n1     none                0B         0B          0B        0          0          0
nvme1n1     none                0B         0B          0B        0          0          0
nvme0n2     host-managed        2G         4K          4M     1844         14         14
nvme1n2     host-managed        2G         4K          4M     1844         14         14

$ lsblk --help|grep -i zone
 -z, --zoned          print zone model
        ZONED  zone model
    ZONE-SIZE  zone size
   ZONE-WGRAN  zone write granularity
  ZONE-APPEND  zone append max bytes
     ZONES-NR  number of zones
   ZONES-OMAX  max open zones
   ZONES-AMAX  max active zones


Naohiro Aota (2):
  lsblk: factor out function to read sysfs param as bytes
  lsblk: add columns of zoned parameters

 misc-utils/lsblk.c | 95 ++++++++++++++++++++++++++++++++++------------
 1 file changed, 71 insertions(+), 24 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2021-08-25 10:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24  1:17 [PATCH 0/2] add columns for zoned parameters Naohiro Aota
2021-08-24  1:17 ` [PATCH 1/2] lsblk: factor out function to read sysfs param as bytes Naohiro Aota
2021-08-24  1:17 ` [PATCH 2/2] lsblk: add columns of zoned parameters Naohiro Aota
2021-08-24 12:47 ` [PATCH 0/2] add columns for " Karel Zak
2021-08-25  2:12   ` Naohiro Aota
2021-08-25  2:49     ` Damien Le Moal
2021-08-25 10:03     ` Karel Zak

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.