Author: trasz
Date: Sun Mar  1 18:26:26 2015
New Revision: 279489
URL: https://svnweb.freebsd.org/changeset/base/279489

Log:
  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

Modified:
  head/sbin/mount_fusefs/mount_fusefs.c

Modified: head/sbin/mount_fusefs/mount_fusefs.c
==============================================================================
--- head/sbin/mount_fusefs/mount_fusefs.c       Sun Mar  1 12:54:22 2015        
(r279488)
+++ head/sbin/mount_fusefs/mount_fusefs.c       Sun Mar  1 18:26:26 2015        
(r279489)
@@ -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 },
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to