Blame SOURCES/autofs-5.1.5-always-use-PROC_MOUNTS-to-make-mount-lists.patch

1c5f92
autofs-5.1.5 - always use PROC_MOUNTS to make mount lists
1c5f92
1c5f92
From: Ian Kent <raven@themaw.net>
1c5f92
1c5f92
If it's necessary to read a mount table then always use the proc file
1c5f92
system mount table.
1c5f92
1c5f92
This could be very inefficient for cases where the mtab (_PATH_MOUNTED)
1c5f92
is specified but the mtab has been a symlink to the proc mount tables
1c5f92
for quite a while now so it doesn't make any difference always using
1c5f92
the proc tables.
1c5f92
1c5f92
Signed-off-by: Ian Kent <raven@themaw.net>
1c5f92
---
1c5f92
 CHANGELOG           |    1 +
1c5f92
 daemon/automount.c  |    6 +++---
1c5f92
 daemon/direct.c     |   14 +++++++-------
1c5f92
 daemon/indirect.c   |    8 ++++----
1c5f92
 daemon/lookup.c     |    4 ++--
1c5f92
 daemon/spawn.c      |    2 +-
1c5f92
 daemon/state.c      |    2 +-
1c5f92
 include/mounts.h    |    6 +++---
1c5f92
 lib/mounts.c        |   40 ++++++++++++++++++++--------------------
1c5f92
 modules/parse_amd.c |    4 ++--
1c5f92
 10 files changed, 44 insertions(+), 43 deletions(-)
1c5f92
1c5f92
--- autofs-5.1.4.orig/CHANGELOG
1c5f92
+++ autofs-5.1.4/CHANGELOG
1c5f92
@@ -65,6 +65,7 @@ xx/xx/2018 autofs-5.1.5
1c5f92
 - add config option for "ignore" mount option
1c5f92
 - use bit flags for autofs mount types in mnt_list.
1c5f92
 - use mp instead of path in mnt_list entries.
1c5f92
+- always use PROC_MOUNTS to make mount lists.
1c5f92
 
1c5f92
 19/12/2017 autofs-5.1.4
1c5f92
 - fix spec file url.
1c5f92
--- autofs-5.1.4.orig/daemon/automount.c
1c5f92
+++ autofs-5.1.4/daemon/automount.c
1c5f92
@@ -333,7 +333,7 @@ static int walk_tree(const char *base, i
1c5f92
 	struct stat st, *pst = &st;
1c5f92
 	int ret;
1c5f92
 
1c5f92
-	if (!is_mounted(_PATH_MOUNTED, base, MNTS_REAL))
1c5f92
+	if (!is_mounted(base, MNTS_REAL))
1c5f92
 		ret = lstat(base, pst);
1c5f92
 	else {
1c5f92
 		pst = NULL;
1c5f92
@@ -593,11 +593,11 @@ static int umount_subtree_mounts(struct
1c5f92
 	 * If this is the root of a multi-mount we've had to umount
1c5f92
 	 * it already to ensure it's ok to remove any offset triggers.
1c5f92
 	 */
1c5f92
-	if (!is_mm_root && is_mounted(_PATH_MOUNTED, path, MNTS_REAL)) {
1c5f92
+	if (!is_mm_root && is_mounted(path, MNTS_REAL)) {
1c5f92
 		struct amd_entry *entry;
1c5f92
 		debug(ap->logopt, "unmounting dir = %s", path);
1c5f92
 		if (umount_ent(ap, path) &&
1c5f92
-		    is_mounted(_PATH_MOUNTED, path, MNTS_REAL)) {
1c5f92
+		    is_mounted(path, MNTS_REAL)) {
1c5f92
 			warn(ap->logopt, "could not umount dir %s", path);
1c5f92
 			left++;
1c5f92
 			goto done;
1c5f92
--- autofs-5.1.4.orig/daemon/direct.c
1c5f92
+++ autofs-5.1.4/daemon/direct.c
1c5f92
@@ -207,7 +207,7 @@ int umount_autofs_direct(struct autofs_p
1c5f92
 	struct mnt_list *mnts;
1c5f92
 	struct mapent *me, *ne;
1c5f92
 
1c5f92
-	mnts = tree_make_mnt_tree(_PROC_MOUNTS, "/");
1c5f92
+	mnts = tree_make_mnt_tree("/");
1c5f92
 	pthread_cleanup_push(mnts_cleanup, mnts);
1c5f92
 	nc = ap->entry->master->nc;
1c5f92
 	cache_readlock(nc);
1c5f92
@@ -515,7 +515,7 @@ int mount_autofs_direct(struct autofs_po
1c5f92
 		return -1;
1c5f92
 	}
1c5f92
 
1c5f92
-	mnts = tree_make_mnt_tree(_PROC_MOUNTS, "/");
1c5f92
+	mnts = tree_make_mnt_tree("/");
1c5f92
 	pthread_cleanup_push(mnts_cleanup, mnts);
1c5f92
 	pthread_cleanup_push(master_source_lock_cleanup, ap->entry);
1c5f92
 	master_source_readlock(ap->entry);
1c5f92
@@ -583,7 +583,7 @@ int umount_autofs_offset(struct autofs_p
1c5f92
 	int opened = 0;
1c5f92
 
1c5f92
 	if (me->ioctlfd != -1) {
1c5f92
-		if (is_mounted(_PATH_MOUNTED, me->key, MNTS_REAL)) {
1c5f92
+		if (is_mounted(me->key, MNTS_REAL)) {
1c5f92
 			error(ap->logopt,
1c5f92
 			      "attempt to umount busy offset %s", me->key);
1c5f92
 			return 1;
1c5f92
@@ -591,7 +591,7 @@ int umount_autofs_offset(struct autofs_p
1c5f92
 		ioctlfd = me->ioctlfd;
1c5f92
 	} else {
1c5f92
 		/* offset isn't mounted, return success and try to recover */
1c5f92
-		if (!is_mounted(_PROC_MOUNTS, me->key, MNTS_AUTOFS)) {
1c5f92
+		if (!is_mounted(me->key, MNTS_AUTOFS)) {
1c5f92
 			debug(ap->logopt,
1c5f92
 			      "offset %s not mounted",
1c5f92
 			      me->key);
1c5f92
@@ -707,7 +707,7 @@ int mount_autofs_offset(struct autofs_po
1c5f92
 		if (!(ret == -1 && errno == ENOENT))
1c5f92
 			return MOUNT_OFFSET_FAIL;
1c5f92
 	} else {
1c5f92
-		if (is_mounted(_PROC_MOUNTS, me->key, MNTS_AUTOFS)) {
1c5f92
+		if (is_mounted(me->key, MNTS_AUTOFS)) {
1c5f92
 			if (ap->state != ST_READMAP)
1c5f92
 				warn(ap->logopt,
1c5f92
 				     "trigger %s already mounted", me->key);
1c5f92
@@ -781,7 +781,7 @@ int mount_autofs_offset(struct autofs_po
1c5f92
 			 * the kernel NFS client.
1c5f92
 			 */
1c5f92
 			if (me->multi != me &&
1c5f92
-			    is_mounted(_PROC_MOUNTS, mountpoint, MNTS_REAL))
1c5f92
+			    is_mounted(mountpoint, MNTS_REAL))
1c5f92
 				return MOUNT_OFFSET_IGNORE;
1c5f92
 
1c5f92
 			/* 
1c5f92
@@ -901,7 +901,7 @@ void *expire_proc_direct(void *arg)
1c5f92
 
1c5f92
 	left = 0;
1c5f92
 
1c5f92
-	mnts = tree_make_mnt_tree(_PROC_MOUNTS, "/");
1c5f92
+	mnts = tree_make_mnt_tree("/");
1c5f92
 	pthread_cleanup_push(mnts_cleanup, mnts);
1c5f92
 
1c5f92
 	/* Get a list of mounts select real ones and expire them if possible */
1c5f92
--- autofs-5.1.4.orig/daemon/indirect.c
1c5f92
+++ autofs-5.1.4/daemon/indirect.c
1c5f92
@@ -104,7 +104,7 @@ static int do_mount_autofs_indirect(stru
1c5f92
 		if (ret == 0)
1c5f92
 			return -1;
1c5f92
 	} else {
1c5f92
-		mnts = get_mnt_list(_PROC_MOUNTS, ap->path, 1);
1c5f92
+		mnts = get_mnt_list(ap->path, 1);
1c5f92
 		if (mnts) {
1c5f92
 			ret = unlink_mount_tree(ap, mnts);
1c5f92
 			free_mnt_list(mnts);
1c5f92
@@ -433,7 +433,7 @@ void *expire_proc_indirect(void *arg)
1c5f92
 	left = 0;
1c5f92
 
1c5f92
 	/* Get a list of real mounts and expire them if possible */
1c5f92
-	mnts = get_mnt_list(_PROC_MOUNTS, ap->path, 0);
1c5f92
+	mnts = get_mnt_list(ap->path, 0);
1c5f92
 	pthread_cleanup_push(mnts_cleanup, mnts);
1c5f92
 	for (next = mnts; next; next = next->next) {
1c5f92
 		char *ind_key;
1c5f92
@@ -454,7 +454,7 @@ void *expire_proc_indirect(void *arg)
1c5f92
 				struct stat st;
1c5f92
 
1c5f92
 				/* It's got a mount, deal with in the outer loop */
1c5f92
-				if (is_mounted(_PATH_MOUNTED, next->mp, MNTS_REAL)) {
1c5f92
+				if (is_mounted(next->mp, MNTS_REAL)) {
1c5f92
 					pthread_setcancelstate(cur_state, NULL);
1c5f92
 					continue;
1c5f92
 				}
1c5f92
@@ -563,7 +563,7 @@ void *expire_proc_indirect(void *arg)
1c5f92
 	pthread_cleanup_pop(1);
1c5f92
 
1c5f92
 	count = offsets = submnts = 0;
1c5f92
-	mnts = get_mnt_list(_PROC_MOUNTS, ap->path, 0);
1c5f92
+	mnts = get_mnt_list(ap->path, 0);
1c5f92
 	pthread_cleanup_push(mnts_cleanup, mnts);
1c5f92
 	/* Are there any real mounts left */
1c5f92
 	for (next = mnts; next; next = next->next) {
1c5f92
--- autofs-5.1.4.orig/daemon/lookup.c
1c5f92
+++ autofs-5.1.4/daemon/lookup.c
1c5f92
@@ -1425,7 +1425,7 @@ void lookup_prune_one_cache(struct autof
1c5f92
 			valid = NULL;
1c5f92
 		}
1c5f92
 		if (!valid &&
1c5f92
-		    is_mounted(_PATH_MOUNTED, path, MNTS_REAL)) {
1c5f92
+		    is_mounted(path, MNTS_REAL)) {
1c5f92
 			debug(ap->logopt, "prune posponed, %s mounted", path);
1c5f92
 			free(key);
1c5f92
 			free(path);
1c5f92
@@ -1448,7 +1448,7 @@ void lookup_prune_one_cache(struct autof
1c5f92
 
1c5f92
 		if (valid)
1c5f92
 			cache_delete(mc, key);
1c5f92
-		else if (!is_mounted(_PROC_MOUNTS, path, MNTS_AUTOFS)) {
1c5f92
+		else if (!is_mounted(path, MNTS_AUTOFS)) {
1c5f92
 			dev_t devid = ap->dev;
1c5f92
 			status = CHE_FAIL;
1c5f92
 			if (ap->type == LKP_DIRECT)
1c5f92
--- autofs-5.1.4.orig/daemon/spawn.c
1c5f92
+++ autofs-5.1.4/daemon/spawn.c
1c5f92
@@ -427,7 +427,7 @@ static int do_spawn(unsigned logopt, uns
1c5f92
 			if (!is_bind)
1c5f92
 				goto done;
1c5f92
 
1c5f92
-			if (is_mounted(_PROC_MOUNTS, argv[loc], MNTS_AUTOFS)) {
1c5f92
+			if (is_mounted(argv[loc], MNTS_AUTOFS)) {
1c5f92
 				fprintf(stderr,
1c5f92
 				     "error: can't bind to an autofs mount\n");
1c5f92
 				close(STDOUT_FILENO);
1c5f92
--- autofs-5.1.4.orig/daemon/state.c
1c5f92
+++ autofs-5.1.4/daemon/state.c
1c5f92
@@ -499,7 +499,7 @@ static void *do_readmap(void *arg)
1c5f92
 		struct mapent *me;
1c5f92
 		unsigned int append_alarm = !ap->exp_runfreq;
1c5f92
 
1c5f92
-		mnts = tree_make_mnt_tree(_PROC_MOUNTS, "/");
1c5f92
+		mnts = tree_make_mnt_tree("/");
1c5f92
 		pthread_cleanup_push(tree_mnts_cleanup, mnts);
1c5f92
 		nc = ap->entry->master->nc;
1c5f92
 		cache_readlock(nc);
1c5f92
--- autofs-5.1.4.orig/include/mounts.h
1c5f92
+++ autofs-5.1.4/include/mounts.h
1c5f92
@@ -99,11 +99,11 @@ char *make_mnt_name_string(char *path);
1c5f92
 int ext_mount_add(struct list_head *, const char *, unsigned int);
1c5f92
 int ext_mount_remove(struct list_head *, const char *);
1c5f92
 int ext_mount_inuse(const char *);
1c5f92
-struct mnt_list *get_mnt_list(const char *table, const char *path, int include);
1c5f92
+struct mnt_list *get_mnt_list(const char *path, int include);
1c5f92
 void free_mnt_list(struct mnt_list *list);
1c5f92
-int is_mounted(const char *table, const char *mp, unsigned int type);
1c5f92
+int is_mounted(const char *mp, unsigned int type);
1c5f92
 void tree_free_mnt_tree(struct mnt_list *tree);
1c5f92
-struct mnt_list *tree_make_mnt_tree(const char *table, const char *path);
1c5f92
+struct mnt_list *tree_make_mnt_tree(const char *path);
1c5f92
 int tree_get_mnt_list(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
1c5f92
 int tree_get_mnt_sublist(struct mnt_list *mnts, struct list_head *list, const char *path, int include);
1c5f92
 int tree_find_mnt_ents(struct mnt_list *mnts, struct list_head *list, const char *path);
1c5f92
--- autofs-5.1.4.orig/lib/mounts.c
1c5f92
+++ autofs-5.1.4/lib/mounts.c
1c5f92
@@ -789,7 +789,7 @@ done:
1c5f92
 /*
1c5f92
  * Get list of mounts under path in longest->shortest order
1c5f92
  */
1c5f92
-struct mnt_list *get_mnt_list(const char *table, const char *path, int include)
1c5f92
+struct mnt_list *get_mnt_list(const char *path, int include)
1c5f92
 {
1c5f92
 	FILE *tab;
1c5f92
 	size_t pathlen = strlen(path);
1c5f92
@@ -803,7 +803,7 @@ struct mnt_list *get_mnt_list(const char
1c5f92
 	if (!path || !pathlen || pathlen > PATH_MAX)
1c5f92
 		return NULL;
1c5f92
 
1c5f92
-	tab = open_setmntent_r(table);
1c5f92
+	tab = open_setmntent_r(_PROC_MOUNTS);
1c5f92
 	if (!tab) {
1c5f92
 		char *estr = strerror_r(errno, buf, PATH_MAX - 1);
1c5f92
 		logerr("setmntent: %s", estr);
1c5f92
@@ -892,7 +892,7 @@ void free_mnt_list(struct mnt_list *list
1c5f92
 	}
1c5f92
 }
1c5f92
 
1c5f92
-static int table_is_mounted(const char *table, const char *mp, unsigned int type)
1c5f92
+static int table_is_mounted(const char *mp, unsigned int type)
1c5f92
 {
1c5f92
 	struct mntent *mnt;
1c5f92
 	struct mntent mnt_wrk;
1c5f92
@@ -904,7 +904,7 @@ static int table_is_mounted(const char *
1c5f92
 	if (!mp || !mp_len || mp_len >= PATH_MAX)
1c5f92
 		return 0;
1c5f92
 
1c5f92
-	tab = open_setmntent_r(table);
1c5f92
+	tab = open_setmntent_r(_PROC_MOUNTS);
1c5f92
 	if (!tab) {
1c5f92
 		char *estr = strerror_r(errno, buf, PATH_MAX - 1);
1c5f92
 		logerr("setmntent: %s", estr);
1c5f92
@@ -938,7 +938,7 @@ static int table_is_mounted(const char *
1c5f92
 	return ret;
1c5f92
 }
1c5f92
 
1c5f92
-static int ioctl_is_mounted(const char *table, const char *mp, unsigned int type)
1c5f92
+static int ioctl_is_mounted(const char *mp, unsigned int type)
1c5f92
 {
1c5f92
 	struct ioctl_ops *ops = get_ioctl_ops();
1c5f92
 	unsigned int mounted;
1c5f92
@@ -949,7 +949,7 @@ static int ioctl_is_mounted(const char *
1c5f92
 	 */
1c5f92
 	ret = ops->ismountpoint(LOGOPT_NONE, -1, mp, &mounted);
1c5f92
 	if (ret == -1)
1c5f92
-		return table_is_mounted(table, mp, type);
1c5f92
+		return table_is_mounted(mp, type);
1c5f92
 
1c5f92
 	if (mounted) {
1c5f92
 		switch (type) {
1c5f92
@@ -964,14 +964,14 @@ static int ioctl_is_mounted(const char *
1c5f92
 	return 0;
1c5f92
 }
1c5f92
 
1c5f92
-int is_mounted(const char *table, const char *mp, unsigned int type)
1c5f92
+int is_mounted(const char *mp, unsigned int type)
1c5f92
 {
1c5f92
 	struct ioctl_ops *ops = get_ioctl_ops();
1c5f92
 
1c5f92
 	if (ops->ismountpoint)
1c5f92
-		return ioctl_is_mounted(table, mp, type);
1c5f92
+		return ioctl_is_mounted(mp, type);
1c5f92
 	else
1c5f92
-		return table_is_mounted(table, mp, type);
1c5f92
+		return table_is_mounted(mp, type);
1c5f92
 }
1c5f92
 
1c5f92
 /*
1c5f92
@@ -1018,7 +1018,7 @@ void tree_free_mnt_tree(struct mnt_list
1c5f92
 /*
1c5f92
  * Make tree of system mounts in /proc/mounts.
1c5f92
  */
1c5f92
-struct mnt_list *tree_make_mnt_tree(const char *table, const char *path)
1c5f92
+struct mnt_list *tree_make_mnt_tree(const char *path)
1c5f92
 {
1c5f92
 	FILE *tab;
1c5f92
 	struct mntent mnt_wrk;
1c5f92
@@ -1029,7 +1029,7 @@ struct mnt_list *tree_make_mnt_tree(cons
1c5f92
 	size_t plen;
1c5f92
 	int eq;
1c5f92
 
1c5f92
-	tab = open_setmntent_r(table);
1c5f92
+	tab = open_setmntent_r(_PROC_MOUNTS);
1c5f92
 	if (!tab) {
1c5f92
 		char *estr = strerror_r(errno, buf, PATH_MAX - 1);
1c5f92
 		logerr("setmntent: %s", estr);
1c5f92
@@ -1281,7 +1281,7 @@ int tree_is_mounted(struct mnt_list *mnt
1c5f92
 	int mounted = 0;
1c5f92
 
1c5f92
 	if (ops->ismountpoint)
1c5f92
-		return ioctl_is_mounted(_PROC_MOUNTS, path, type);
1c5f92
+		return ioctl_is_mounted(path, type);
1c5f92
 
1c5f92
 	INIT_LIST_HEAD(&list);
1c5f92
 
1c5f92
@@ -1856,7 +1856,7 @@ void set_indirect_mount_tree_catatonic(s
1c5f92
 	struct mapent_cache *mc;
1c5f92
 	struct mapent *me;
1c5f92
 
1c5f92
-	if (!is_mounted(_PROC_MOUNTS, ap->path, MNTS_AUTOFS))
1c5f92
+	if (!is_mounted(ap->path, MNTS_AUTOFS))
1c5f92
 		return;
1c5f92
 
1c5f92
 	map = entry->maps;
1c5f92
@@ -1920,7 +1920,7 @@ int umount_ent(struct autofs_point *ap,
1c5f92
 		 * so that we do not try to call rmdir_path on the
1c5f92
 		 * directory.
1c5f92
 		 */
1c5f92
-		if (!rv && is_mounted(_PATH_MOUNTED, path, MNTS_REAL)) {
1c5f92
+		if (!rv && is_mounted(path, MNTS_REAL)) {
1c5f92
 			crit(ap->logopt,
1c5f92
 			     "the umount binary reported that %s was "
1c5f92
 			     "unmounted, but there is still something "
1c5f92
@@ -2053,7 +2053,7 @@ int mount_multi_triggers(struct autofs_p
1c5f92
 		 */
1c5f92
 		if (ap->state == ST_READMAP && ap->flags & MOUNT_FLAG_REMOUNT) {
1c5f92
 			if (oe->ioctlfd != -1 ||
1c5f92
-			    is_mounted(_PROC_MOUNTS, oe->key, MNTS_REAL)) {
1c5f92
+			    is_mounted(oe->key, MNTS_REAL)) {
1c5f92
 				char oe_root[PATH_MAX + 1];
1c5f92
 				strcpy(oe_root, root);
1c5f92
 				strcat(oe_root, offset); 
1c5f92
@@ -2142,7 +2142,7 @@ int umount_multi_triggers(struct autofs_
1c5f92
 		left += umount_multi_triggers(ap, oe, root, oe_base);
1c5f92
 
1c5f92
 		if (oe->ioctlfd != -1 ||
1c5f92
-		    is_mounted(_PROC_MOUNTS, oe->key, MNTS_REAL)) {
1c5f92
+		    is_mounted(oe->key, MNTS_REAL)) {
1c5f92
 			left++;
1c5f92
 			continue;
1c5f92
 		}
1c5f92
@@ -2185,10 +2185,10 @@ int umount_multi_triggers(struct autofs_
1c5f92
 		 * delete the offsets from the cache and we need to put
1c5f92
 		 * the offset triggers back.
1c5f92
 		 */
1c5f92
-		if (is_mounted(_PATH_MOUNTED, root, MNTS_REAL)) {
1c5f92
+		if (is_mounted(root, MNTS_REAL)) {
1c5f92
 			info(ap->logopt, "unmounting dir = %s", root);
1c5f92
 			if (umount_ent(ap, root) &&
1c5f92
-			    is_mounted(_PATH_MOUNTED, root, MNTS_REAL)) {
1c5f92
+			    is_mounted(root, MNTS_REAL)) {
1c5f92
 				if (mount_multi_triggers(ap, me, root, strlen(root), "/") < 0)
1c5f92
 					warn(ap->logopt,
1c5f92
 					     "failed to remount offset triggers");
1c5f92
@@ -2288,9 +2288,9 @@ int clean_stale_multi_triggers(struct au
1c5f92
 		 * ESTALE errors when attempting list the directory.
1c5f92
 		 */
1c5f92
 		if (oe->ioctlfd != -1 ||
1c5f92
-		    is_mounted(_PROC_MOUNTS, oe->key, MNTS_REAL)) {
1c5f92
+		    is_mounted(oe->key, MNTS_REAL)) {
1c5f92
 			if (umount_ent(ap, oe->key) &&
1c5f92
-			    is_mounted(_PROC_MOUNTS, oe->key, MNTS_REAL)) {
1c5f92
+			    is_mounted(oe->key, MNTS_REAL)) {
1c5f92
 				debug(ap->logopt,
1c5f92
 				      "offset %s has active mount, invalidate",
1c5f92
 				      oe->key);
1c5f92
--- autofs-5.1.4.orig/modules/parse_amd.c
1c5f92
+++ autofs-5.1.4/modules/parse_amd.c
1c5f92
@@ -1173,7 +1173,7 @@ static int do_generic_mount(struct autof
1c5f92
 		 * multiple times since they are outside of
1c5f92
 		 * the automount filesystem.
1c5f92
 		 */
1c5f92
-		if (!is_mounted(_PATH_MOUNTED, entry->fs, MNTS_REAL)) {
1c5f92
+		if (!is_mounted(entry->fs, MNTS_REAL)) {
1c5f92
 			ret = do_mount(ap, entry->fs, "/", 1,
1c5f92
 				       target, entry->type, opts);
1c5f92
 			if (ret)
1c5f92
@@ -1223,7 +1223,7 @@ static int do_nfs_mount(struct autofs_po
1c5f92
 					     target, entry->type, opts,
1c5f92
 					     mount_nfs->context);
1c5f92
 	} else {
1c5f92
-		if (!is_mounted(_PATH_MOUNTED, entry->fs, MNTS_REAL)) {
1c5f92
+		if (!is_mounted(entry->fs, MNTS_REAL)) {
1c5f92
 			ret = mount_nfs->mount_mount(ap, entry->fs, "/", 1,
1c5f92
 						target, entry->type, opts,
1c5f92
 						mount_nfs->context);