]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fill NAME column of inotify files with the information about their monitoring...
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Jun 2023 05:55:05 +0000 (14:55 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 13 Jun 2023 10:18:35 +0000 (19:18 +0900)
commitc1a26ac8f13eb1a485699fa2fd910d952bbf8369
tree80cb129f41fe016a062176deb86d7363af47c475
parentc032850e8f5723cda66025015ec82770b2937869
lsfd: fill NAME column of inotify files with the information about their monitoring targets

    # ./lsfd  -p 1  -Q '(TYPE == "inotify") and (FD > 7)'
    COMMAND PID USER ASSOC MODE    TYPE       SOURCE MNTID INODE NAME
    systemd   1 root    11  r-- inotify anon_inodefs    15  1060 inodes=116@dm-0
    systemd   1 root    13  r-- inotify anon_inodefs    15  1060 inodes=299@tmpfs
    systemd   1 root    19  r-- inotify anon_inodefs    15  1060 inodes=41@tmpfs,2@tmpfs,1@tmpfs,96@dm-0
    systemd   1 root    21  r-- inotify anon_inodefs    15  1060 inodes=41@tmpfs,2@tmpfs,1@tmpfs,96@dm-0

In addition, INOTIFY.INODES and INOTIFY.INODES.RAW column are added.

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