From 575d5e910633e63214dbdd63ea72d47d4f735e19 Mon Sep 17 00:00:00 2001 From: skreuzer Date: Wed, 6 Aug 2014 14:38:09 +0000 Subject: Mention tmpfs(5) PR: 192389 Submitted by: yaneurabeya@gmail.com Approved by: hrs (mentor) --- sbin/mount/mount.8 | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin/mount') diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 50c5a8b..3b5c254 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -551,6 +551,7 @@ support for a particular file system might be provided either on a static .Xr mount_smbfs 8 , .Xr mount_udf 8 , .Xr mount_unionfs 8 , +.Xr tmpfs 5 , .Xr umount 8 , .Xr zfs 8 , .Xr zpool 8 -- cgit v1.1 From cac9beab7d53f0c37ce2a2a1b893be59028928f4 Mon Sep 17 00:00:00 2001 From: trasz Date: Sun, 17 Aug 2014 09:44:42 +0000 Subject: Bring in the new automounter, similar to what's provided in most other UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format, has proper kernel support, and LDAP integration. There are still a few outstanding problems; they will be fixed shortly. Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions) Phabric: D523 MFC after: 2 weeks Relnotes: yes Sponsored by: The FreeBSD Foundation --- sbin/mount/mntopts.h | 6 ++++-- sbin/mount/mount.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sbin/mount') diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h index 86a350f..d273dde 100644 --- a/sbin/mount/mntopts.h +++ b/sbin/mount/mntopts.h @@ -33,7 +33,7 @@ struct mntopt { const char *m_option; /* option name */ int m_inverse; /* if a negative option, e.g. "atime" */ - int m_flag; /* bit to set, e.g. MNT_RDONLY */ + long long m_flag; /* bit to set, e.g. MNT_RDONLY */ int m_altloc; /* 1 => set bit in altflags */ }; @@ -55,6 +55,7 @@ struct mntopt { #define MOPT_MULTILABEL { "multilabel", 0, MNT_MULTILABEL, 0 } #define MOPT_ACLS { "acls", 0, MNT_ACLS, 0 } #define MOPT_NFS4ACLS { "nfsv4acls", 0, MNT_NFS4ACLS, 0 } +#define MOPT_AUTOMOUNTED { "automounted",0, MNT_AUTOMOUNTED, 0 } /* Control flags. */ #define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } @@ -89,7 +90,8 @@ struct mntopt { MOPT_NOCLUSTERW, \ MOPT_MULTILABEL, \ MOPT_ACLS, \ - MOPT_NFS4ACLS + MOPT_NFS4ACLS, \ + MOPT_AUTOMOUNTED void getmntopts(const char *, const struct mntopt *, int *, int *); void rmslashes(char *, char *); diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 91c7d7c..5ea45df 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -114,6 +114,7 @@ static struct opt { { MNT_ACLS, "acls" }, { MNT_NFS4ACLS, "nfsv4acls" }, { MNT_GJOURNAL, "gjournal" }, + { MNT_AUTOMOUNTED, "automounted" }, { 0, NULL } }; -- cgit v1.1 From e067fb3d980d7a8316740179d97bc261ca77da78 Mon Sep 17 00:00:00 2001 From: trasz Date: Wed, 20 Aug 2014 13:52:47 +0000 Subject: Add description for the "automounted" mount flag. Reviewed by: emaste@ MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- sbin/mount/mount.8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sbin/mount') diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 3b5c254..bfa70b6 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -28,7 +28,7 @@ .\" @(#)mount.8 8.8 (Berkeley) 6/16/94 .\" $FreeBSD$ .\" -.Dd June 6, 2011 +.Dd August 20, 2014 .Dt MOUNT 8 .Os .Sh NAME @@ -150,6 +150,11 @@ For this reason, the .Cm async flag should be used sparingly, and only when some data recovery mechanism is present. +.It Cm automounted +This flag indicates that the file system was mounted by +.Xr automountd 8 . +Automounted file systems are automatically unmounted by +.Xr autounmountd 8 . .It Cm current When used with the .Fl u -- cgit v1.1