]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: collect the device number for mqueue fs in the initialization stage
authorMasatake YAMATO <yamato@redhat.com>
Mon, 18 Sep 2023 06:39:39 +0000 (15:39 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 18 Sep 2023 09:16:26 +0000 (18:16 +0900)
commite3dedb011e1fe578e921c0c6858e9b3d9b79ec84
tree7d7588bd1d96c7bf949dd5d08df7c28116c63bf2
parentc28ec017d279bb97d99d349a90fda114886e16a8
lsfd: collect the device number for mqueue fs in the initialization stage

Though lsfd reads device minor numbers for file-systems having "nodev"
from /proc/$pid/mountinfo, we observed lsfd failed to resolve the
values of SOURCE column for mqueue files on s390 CI/CD env. It seems
that /proc/$pid/mountinfo doesn't provide enough information.

This change makes lsfd open a mqueue file in lsfd's initialization
stage as a new data source for resolving; lsfd can collect an
actually-used minor number from the file descriptor with fstat(2).

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
meson.build
misc-utils/Makemodule.am
misc-utils/lsfd-file.c