From: Masatake YAMATO Date: Wed, 3 Jan 2024 06:54:03 +0000 (+0900) Subject: lsfd: (refactor) rename add_nodevs to read_mountinfo X-Git-Tag: v2.40-rc2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a8881c63cf0b0ed9ccbc68f255812e4cd597032;p=thirdparty%2Futil-linux.git lsfd: (refactor) rename add_nodevs to read_mountinfo Signed-off-by: Masatake YAMATO (cherry picked from commit 18a1403401112665f5015770c99f96ced5c6e38e) --- 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);