Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 1999 08:49:05 -0800 (PST)
From:      Cy Schubert <cy@cschuber.net.gov.bc.ca>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/10572: 3.1 mount command inconsistent with 2.x mount command
Message-ID:  <199903131649.IAA04908@cwsys.cwsent.com>

next in thread | raw e-mail | index | archive | help

>Number:         10572
>Category:       bin
>Synopsis:       mount -u no longer works with -a option under 3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 13 08:50:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Cy Schubert
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
ITSD, Province of BC
>Environment:

	FreeBSD cwsys 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Sat Mar 13 06:45:30 PST 1999     root@cwsys:/opt/usr_src/sys/compile/CWSYS  i386

>Description:

	3.1 mount -uvatufs -o<pick an option> no longer works as it did
	under 2.2.

>How-To-Repeat:

	mount -uvatufs -oasync or mount -uvatufs.

>Fix:
	
--- src/sbin/mount/mount.c.orig	Mon Jul  6 00:12:38 1998
+++ src/sbin/mount/mount.c	Sat Mar 13 08:33:30 1999
@@ -192,7 +192,8 @@
 					continue;
 				if (hasopt(fs->fs_mntops, "noauto"))
 					continue;
-				if (ismounted(fs, mntbuf, mntsize))
+				if (!(init_flags & MNT_UPDATE) &&
+				    ismounted(fs, mntbuf, mntsize))
 					continue;
 				if (mountfs(fs->fs_vfstype, fs->fs_spec,
 				    fs->fs_file, init_flags, options,

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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