* [PATCH] lsblk: add dax (direct access) capability column
@ 2020-05-05 14:31 Anthony Iliopoulos
2020-05-06 13:15 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Iliopoulos @ 2020-05-05 14:31 UTC (permalink / raw)
To: util-linux; +Cc: ailiop
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
---
misc-utils/lsblk.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 72ac7b483..51b9f6ad7 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -117,6 +117,7 @@ enum {
COL_REV,
COL_VENDOR,
COL_ZONED,
+ COL_DAX
};
/* basic table settings */
@@ -208,6 +209,7 @@ static struct colinfo infos[] = {
[COL_REV] = { "REV", 4, SCOLS_FL_RIGHT, N_("device revision") },
[COL_VENDOR] = { "VENDOR", 0.1, SCOLS_FL_TRUNC, N_("device vendor") },
[COL_ZONED] = { "ZONED", 0.3, 0, N_("zone model") },
+ [COL_DAX] = { "DAX", 1, SCOLS_FL_RIGHT, N_("dax-capable device"), COLTYPE_BOOL },
};
struct lsblk *lsblk; /* global handler */
@@ -1031,6 +1033,9 @@ static char *device_get_data(
case COL_ZONED:
ul_path_read_string(dev->sysfs, &str, "queue/zoned");
break;
+ case COL_DAX:
+ ul_path_read_string(dev->sysfs, &str, "queue/dax");
+ break;
};
return str;
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lsblk: add dax (direct access) capability column
2020-05-05 14:31 [PATCH] lsblk: add dax (direct access) capability column Anthony Iliopoulos
@ 2020-05-06 13:15 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2020-05-06 13:15 UTC (permalink / raw)
To: Anthony Iliopoulos; +Cc: util-linux
On Tue, May 05, 2020 at 04:31:44PM +0200, Anthony Iliopoulos wrote:
> misc-utils/lsblk.c | 5 +++++
> 1 file changed, 5 insertions(+)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-06 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 14:31 [PATCH] lsblk: add dax (direct access) capability column Anthony Iliopoulos
2020-05-06 13:15 ` 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).