Subject: bin/4530: "mount -o nocoredump" seriously hosed?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <css@seatbelt.notwork.net>
List: netbsd-bugs
Date: 11/18/1997 03:16:51
>Number:         4530
>Category:       bin
>Synopsis:       "mount -o nocoredump" seriously hosed?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 18 00:20:01 1997
>Last-Modified:
>Originator:     Carl S. Shapiro
>Organization:
Notwork Labs (http://www.notwork.net)
>Release:        -current as of November 15, 1997
>Environment:
	
System: NetBSD seatbelt.notwork.net 1.3_ALPHA NetBSD 1.3_ALPHA (KUMQUAT) #0: Sat Nov 15 20:33:27 EST 1997 root@nothing.notwork.net:/usr/src/sys/arch/sparc/compile/KUMQUAT sparc


>Description:
	Trying to mount a filesystem with "nocoredump" causes serious mount
	options breakage.

>How-To-Repeat:
	Try to mount a filesystem with the nocoredump option.

Before:

seatbelt % mount
/dev/sd0a on / type ffs (local)
/dev/sd0e on /usr type ffs (local, read-only)
/dev/sd0g on /var type ffs (local, nodev, nosuid)
/dev/sd0f on /usr/local type ffs (local, nodev)
fdesc on /dev type fdesc (local, union)
procfs on /proc type procfs (local)
kernfs on /kern type kernfs (local)
mfs:11559 on /tmp type mfs (asynchronous, local, nodev, nosuid)

After:

seatbelt % mount -o nocoredump
seatbelt % mount
/dev/sd0a on / type ffs (local, noatime, nocoredump, unknown flag 0x20000000)
/dev/sd0e on /usr type ffs (local, read-only)
/dev/sd0g on /var type ffs (local, nodev, nosuid)
/dev/sd0f on /usr/local type ffs (local, nodev)
fdesc on /dev type fdesc (local, union)
procfs on /proc type procfs (local)
kernfs on /kern type kernfs (local)
mfs:11559 on /tmp type mfs (asynchronous, local, nodev, nosuid)

I clearly did *not* specify that / should be mounted noatime, nor does the
mount(8) man page state anywhere that mounting a filesystem with nocoredump
also causes it to be mounted with noatime (or with "unknown flag 0x20000000" 
either).

>Fix:
>Audit-Trail:
>Unformatted: