From owner-svn-src-all@FreeBSD.ORG Sun Nov 23 19:52:57 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 059311065670; Sun, 23 Nov 2008 19:52:57 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E6A368FC0C; Sun, 23 Nov 2008 19:52:56 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mANJqu1q061984; Sun, 23 Nov 2008 19:52:56 GMT (envelope-from keramida@svn.freebsd.org) Received: (from keramida@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mANJqucM061983; Sun, 23 Nov 2008 19:52:56 GMT (envelope-from keramida@svn.freebsd.org) Message-Id: <200811231952.mANJqucM061983@svn.freebsd.org> From: Giorgos Keramidas Date: Sun, 23 Nov 2008 19:52:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185217 - head/share/man/man5 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 19:52:57 -0000 Author: keramida (doc committer) Date: Sun Nov 23 19:52:56 2008 New Revision: 185217 URL: http://svn.freebsd.org/changeset/base/185217 Log: Enhance the explanation of using filesystem-specific mount options in /etc/fstab. We do support passing special options on a per filesystem type basis, like `-u UID -g GID' for mount_msdosfs, but the syntax of these options in fstab is non-obvious and a lot of users have asked about it. PR: docs/128816 Submitted by: Roland Smith, rsmith at xs4all dot nl MFC after: 2 days Modified: head/share/man/man5/fstab.5 Modified: head/share/man/man5/fstab.5 ============================================================================== --- head/share/man/man5/fstab.5 Sun Nov 23 19:50:20 2008 (r185216) +++ head/share/man/man5/fstab.5 Sun Nov 23 19:52:56 2008 (r185217) @@ -32,7 +32,7 @@ .\" @(#)fstab.5 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd February 11, 2008 +.Dd November 23, 2008 .Dt FSTAB 5 .Os .Sh NAME @@ -91,8 +91,7 @@ describes the mount options associated w It is formatted as a comma separated list of options. It contains at least the type of mount (see .Fa fs_type -below) plus any additional options -appropriate to the file system type. +below) plus any additional options appropriate to the file system type. See the options flag .Pq Fl o in the @@ -100,6 +99,32 @@ in the page and the file system specific page, such as .Xr mount_nfs 8 , for additional options that may be specified. +All options that can be given to the file system specific mount commands +can be used in +.Nm +as well. +They just need to be formatted a bit differently. +The arguments of the +.Fl o +option can be used without the preceding +.Fl o +flag. +Other options need both the file system specific flag and its argument, +separated by an equal sign. +For example, mounting an +.Xr msdosfs 5 +filesystem, the options +.Bd -literal -offset indent +-o sync -o noatime -m 644 -M 755 -u foo -g bar +.Ed +.Pp +should be written as +.Bd -literal -offset indent +sync,noatime,-m=644,-M=755,-u=foo,-g=bar +.Ed +.Pp +in the option field of +.Nm . .Pp If the options ``userquota'' and/or ``groupquota'' are specified, the file system is automatically processed by the