From nobody@FreeBSD.org  Sat Jan 15 22:34:06 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2C99C16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Jan 2005 22:34:06 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1080C43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Jan 2005 22:34:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0FMY5Vk082710
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Jan 2005 22:34:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j0FMY5n1082709;
	Sat, 15 Jan 2005 22:34:05 GMT
	(envelope-from nobody)
Message-Id: <200501152234.j0FMY5n1082709@www.freebsd.org>
Date: Sat, 15 Jan 2005 22:34:05 GMT
From: Bart Kus <eo@shell-server.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: fstab doesn't pass mntops properly
X-Send-Pr-Version: www-2.3

>Number:         76298
>Category:       conf
>Synopsis:       fstab doesn't pass mntops properly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 15 22:40:28 GMT 2005
>Closed-Date:    Sun May 11 17:01:09 UTC 2008
>Last-Modified:  Sun May 11 17:01:09 UTC 2008
>Originator:     Bart Kus
>Release:        5.3-RELEASE
>Organization:
>Environment:
FreeBSD jo.shell-server.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
It seems like there needs to be some kind of option in the mntops column
of fstab from the "man mount" list under the -o section PRECEDING any
"man mount_nfs" options.  Please notice the addition of the "ro," option
below.  The exports line is:

[root@jo:~]# tail -2 /etc/exports  
/usr/home/autocvs/src /usr/home/autocvs/ports -ro

[root@jo:~]# 

>How-To-Repeat:
      [root@jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs -T 0 0
[root@jo:~]# mount test
fstab: /etc/fstab:7: Inappropriate file type or format
fstab: /etc/fstab:7: Inappropriate file type or format
mount: test: unknown special file or file system
[root@jo:~]#

>Fix:
      [root@jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs ro,-T 0 0
[root@jo:~]# mount -a
[root@jo:~]# df -h | tail -1
jo:/usr/home/autocvs/ports     17G    3.6G     12G    24%    /root/test
[root@jo:~]# 

>Release-Note:
>Audit-Trail:

From: Jaakko Heinonen <jh@saunalahti.fi>
To: bug-followup@FreeBSD.org, eo@shell-server.com
Cc:  
Subject: Re: conf/76298: fstab doesn't pass mntops properly
Date: Sun, 6 Apr 2008 10:48:57 +0300

 In my opinion this is not a bug. According to fstab(5) manual page the
 fs_mntops field must contain at least the type of mount:
 
      The fourth field, (fs_mntops), describes the mount options associated
      with the file system.  It is formatted as a comma separated list of
      options.  It contains at least the type of mount (see fs_type below) plus
      any additional options appropriate to the file system type.  See the
      options flag (-o) in the mount(8) page and the file system specific page,
      such as mount_nfs(8), for additional options that may be specified.
 
 Mount types are rw, rq, ro, sw and xx.
 
 Thus "-T" is not a valid fs_mntops field but "ro,-T" and "-T,ro" are.
 
 -- 
 Jaakko
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Dom 11 Mag 2008 17:00:36 UTC 
State-Changed-Why:  
Jaakko clearly explained why this is not a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76298 
>Unformatted:
