]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: add ENDPOINTS column
authorMasatake YAMATO <yamato@redhat.com>
Mon, 7 Mar 2022 13:18:15 +0000 (22:18 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 4 Apr 2022 12:05:58 +0000 (21:05 +0900)
The field is for printing the information about the IPC
endpoints.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.1.adoc
misc-utils/lsfd.c
misc-utils/lsfd.h

index 72a7c10a43e3d3ee4d584162c598fb4355962d9c..ca9d8287d43fd635255d1f1a473f9c15b7173690 100644 (file)
@@ -133,6 +133,9 @@ ID of the device containing the file.
 DEVTYPE <__string__>::
 Device type (_blk_, _char_, or _nodev_).
 
+ENDPOINT <__string__>::
+IPC endpoints information communicated with the fd.
+
 FD <__number__>::
 File descriptor for the file.
 
index 8d593fa279a2b732712523d7caaec5862834e4f9..88b9205cb14c713d8278c3d5463aa866856153cc 100644 (file)
@@ -133,6 +133,8 @@ static struct colinfo infos[] = {
                N_("ID of device containing file") },
        [COL_DEVTYPE] = { "DEVTYPE",  0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
                N_("device type (blk, char, or nodev)") },
+       [COL_ENDPOINTS] ={"ENDPOINTS",0,              0, SCOLS_JSON_STRING,
+               N_("IPC endpoints information communicated with the fd") },
        [COL_FLAGS]   = { "FLAGS",    0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
                N_("flags specified when opening the file") },
        [COL_FD]      = { "FD",       0, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER,
index cf2cb52b306c4e8ad9c853e84e0f82300566f0aa..b6c533b4ab19262682da9708644132c7d74d8850 100644 (file)
@@ -43,6 +43,7 @@ enum {
        COL_DELETED,
        COL_DEV,
        COL_DEVTYPE,
+       COL_ENDPOINTS,
        COL_FD,
        COL_FLAGS,
        COL_INODE,