From: Naohiro Aota <naohiro.aota@wdc.com>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org, Damien.LeMoal@wdc.com,
Naohiro Aota <naohiro.aota@wdc.com>
Subject: [PATCH v3 0/3] add columns for zoned parameters
Date: Mon, 30 Aug 2021 14:52:54 +0900 [thread overview]
Message-ID: <20210830055257.1832523-1-naohiro.aota@wdc.com> (raw)
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
next reply other threads:[~2021-08-30 5:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 5:52 Naohiro Aota [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210830055257.1832523-1-naohiro.aota@wdc.com \
--to=naohiro.aota@wdc.com \
--cc=Damien.LeMoal@wdc.com \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).