From 7a8881c63cf0b0ed9ccbc68f255812e4cd597032 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Wed, 3 Jan 2024 15:54:03 +0900 Subject: [PATCH] lsfd: (refactor) rename add_nodevs to read_mountinfo Signed-off-by: Masatake YAMATO (cherry picked from commit 18a1403401112665f5015770c99f96ced5c6e38e) --- misc-utils/lsfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index cdbc48476..ac7b37843 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -1093,7 +1093,7 @@ const char *get_nodev_filesystem(unsigned long minor) return NULL; } -static void add_nodevs(FILE *mnt) +static void read_mountinfo(FILE *mnt) { /* This can be very long. A line in mountinfo can have more than 3 * paths. */ @@ -1701,7 +1701,7 @@ static void read_process(struct lsfd_control *ctl, struct path_cxt *pc, if (proc->ns_mnt == 0 || !has_mnt_ns(proc->ns_mnt)) { FILE *mnt = ul_path_fopen(pc, "r", "mountinfo"); if (mnt) { - add_nodevs(mnt); + read_mountinfo(mnt); if (proc->ns_mnt) add_mnt_ns(proc->ns_mnt); fclose(mnt); -- 2.47.2