Pass "automounted" mount option to mount_fusefs(8)

This only addresses libfuse rejecting unknown option. mount_fusefs(8)
still needs to be fixed separately.

PR:		192852
This commit is contained in:
Jan Beich 2015-02-20 08:26:20 +00:00
parent b73456e5e8
commit 8d245f97c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379415
2 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= fusefs
PORTVERSION= 2.9.3
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= SF/fuse/fuse-2.X/${PORTVERSION}
PKGNAMESUFFIX= -libs

View File

@ -9,6 +9,14 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/sysctl.h>
@@ -78,6 +80,7 @@ static const struct fuse_opt fuse_mount_
FUSE_DUAL_OPT_KEY("ro", KEY_KERN),
FUSE_DUAL_OPT_KEY("rw", KEY_KERN),
FUSE_DUAL_OPT_KEY("auto", KEY_KERN),
+ FUSE_DUAL_OPT_KEY("automounted", KEY_KERN),
/* options supported under both Linux and FBSD */
FUSE_DUAL_OPT_KEY("allow_other", KEY_KERN),
FUSE_DUAL_OPT_KEY("default_permissions",KEY_KERN),
@@ -192,56 +194,12 @@
free(umount_cmd);
}