aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2019-07-01 11:24:27 +0800
committerIan Kent <raven@themaw.net>2019-09-06 17:35:10 +0800
commitf1bcbe7c84aafbe8fb3a95d972fda546190031f1 (patch)
tree0f376f652d94a26c59cc87c334b3b62b74882715 /include
parent9c1a64182046811a0d172498a1c5e81522d02590 (diff)
downloadautofs-f1bcbe7c84aafbe8fb3a95d972fda546190031f1.tar.gz
autofs-5.1.5 - always use PROC_MOUNTS to make mount lists
If it's necessary to read a mount table then always use the proc file system mount table. This could be very inefficient for cases where the mtab (_PATH_MOUNTED) is specified but the mtab has been a symlink to the proc mount tables for quite a while now so it doesn't make any difference always using the proc tables. Signed-off-by: Ian Kent <raven@themaw.net>
Diffstat (limited to 'include')
-rw-r--r--include/mounts.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mounts.h b/include/mounts.h
index 657fc10d..f7bc4589 100644
--- a/include/mounts.h
+++ b/include/mounts.h
@@ -99,11 +99,11 @@ char *make_mnt_name_string(char *path);
int ext_mount_add(struct list_head *, const char *, unsigned int);
int ext_mount_remove(struct list_head *, const char *);
int ext_mount_inuse(const char *);
-struct mnt_list *get_mnt_list(const char *table, const char *path, int include);
+struct mnt_list *get_mnt_list(const char *path, int include);
void free_mnt_list(struct mnt_list *list);
-int is_mounted(const char *table, const char *mp, unsigned int type);
+int is_mounted(const char *mp, unsigned int type);
void tree_free_mnt_tree(struct mnt_list *tree);
-struct mnt_list *tree_make_mnt_tree(const char *table, const char *path);
+struct mnt_list *tree_make_mnt_tree(const char *path);
int tree_get_mnt_list(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
int tree_get_mnt_sublist(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
int tree_find_mnt_ents(struct mnt_list *mnts, struct list_head *list, const char *path);