summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-05-15 11:00:12 +0000
committertrasz <trasz@FreeBSD.org>2015-05-15 11:00:12 +0000
commit871ace6a13402f2e8b98da5100a099da55ba3076 (patch)
tree23c704181670742e83857e7bc63619a87d8d6494 /sbin
parent6da8f5889ae9a4e5945f2c54adf700d8c243ffa7 (diff)
downloadFreeBSD-src-871ace6a13402f2e8b98da5100a099da55ba3076.zip
FreeBSD-src-871ace6a13402f2e8b98da5100a099da55ba3076.tar.gz
MFC r279489:
Make the "automounted" flag work for FUSE filesystems. PR: 192852 Submitted by: taku at tackymt.homeip.net (earlier version) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_fusefs/mount_fusefs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/mount_fusefs/mount_fusefs.c b/sbin/mount_fusefs/mount_fusefs.c
index 797aba7..7d4b9a1 100644
--- a/sbin/mount_fusefs/mount_fusefs.c
+++ b/sbin/mount_fusefs/mount_fusefs.c
@@ -73,6 +73,13 @@ static struct mntopt mopts[] = {
{ "subtype=", 0, ALTF_SUBTYPE, 1 },
#define ALTF_SYNC_UNMOUNT 0x80
{ "sync_unmount", 0, ALTF_SYNC_UNMOUNT, 1 },
+ /*
+ * MOPT_AUTOMOUNTED, included by MOPT_STDOPTS, does not fit into
+ * the 'flags' argument to nmount(2). We have to abuse altflags
+ * to pass it, as string, via iovec.
+ */
+ #define ALTF_AUTOMOUNTED 0x100
+ { "automounted", 0, ALTF_AUTOMOUNTED, 1 },
/* Linux specific options, we silently ignore them */
{ "fsname=", 0, 0x00, 1 },
{ "fd=", 0, 0x00, 1 },
OpenPOWER on IntegriCloud