Util-Linux Archive on lore.kernel.org
 help / color / Atom feed
* [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	[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, back to index

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

Util-Linux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/util-linux/0 util-linux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 util-linux util-linux/ https://lore.kernel.org/util-linux \
		util-linux@vger.kernel.org
	public-inbox-index util-linux

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.util-linux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git