From: Anthony Iliopoulos Date: Tue, 5 May 2020 14:31:44 +0000 (+0200) Subject: lsblk: add dax (direct access) capability column X-Git-Tag: v2.36-rc1~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b239651bba87d72738f32a926ea1f03cf03c7210;p=thirdparty%2Futil-linux.git lsblk: add dax (direct access) capability column Signed-off-by: Anthony Iliopoulos --- diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 72ac7b4832..51b9f6ad7c 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;