diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-03-01 18:26:26 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-03-01 18:26:26 +0000 |
commit | 5e252f640282aa4a95ab42b2566b2dc5f9f23aab (patch) | |
tree | f09ecfe227653d5e21c474b35a6eeab327e97a2d /sbin/mount_fusefs | |
parent | 76e2f976561fd436e412f6898c2d2454b0bd5572 (diff) | |
download | src-5e252f640282aa4a95ab42b2566b2dc5f9f23aab.tar.gz src-5e252f640282aa4a95ab42b2566b2dc5f9f23aab.zip |
Make the "automounted" flag work for FUSE filesystems.
PR: 192852
Submitted by: taku at tackymt.homeip.net (earlier version)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=279489
Diffstat (limited to 'sbin/mount_fusefs')
-rw-r--r-- | sbin/mount_fusefs/mount_fusefs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/mount_fusefs/mount_fusefs.c b/sbin/mount_fusefs/mount_fusefs.c index 797aba7228a4..7d4b9a1ebd6b 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 }, |