Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2015 11:00:12 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r282959 - stable/10/sbin/mount_fusefs
Message-ID:  <201505151100.t4FB0C8k068099@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri May 15 11:00:12 2015
New Revision: 282959
URL: https://svnweb.freebsd.org/changeset/base/282959

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

Modified:
  stable/10/sbin/mount_fusefs/mount_fusefs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/mount_fusefs/mount_fusefs.c
==============================================================================
--- stable/10/sbin/mount_fusefs/mount_fusefs.c	Fri May 15 10:56:22 2015	(r282958)
+++ stable/10/sbin/mount_fusefs/mount_fusefs.c	Fri May 15 11:00:12 2015	(r282959)
@@ -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 },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505151100.t4FB0C8k068099>