From nobody@FreeBSD.org  Thu Jan 29 10:17:47 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1254F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Jan 2009 10:17:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 01F0D8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Jan 2009 10:17:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0TAHkPh079801
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Jan 2009 10:17:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0TAHkAN079800;
	Thu, 29 Jan 2009 10:17:46 GMT
	(envelope-from nobody)
Message-Id: <200901291017.n0TAHkAN079800@www.freebsd.org>
Date: Thu, 29 Jan 2009 10:17:46 GMT
From: Elmar Stellnberger <estellnb@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount hangs on attempt to remount as rw
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131113
>Category:       bin
>Synopsis:       mount(8) hangs on attempt to remount as rw
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 29 10:20:01 UTC 2009
>Closed-Date:    Sat Feb 12 16:38:14 UTC 2011
>Last-Modified:  Sat Feb 12 16:38:14 UTC 2011
>Originator:     Elmar Stellnberger
>Release:        7.1
>Organization:
>Environment:
FreeBSD scaleo.studiob 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
> mount -o rw /Users
hangs and can not be terminated by kill or kill -9.
sucessive 
> umount /Users
umount: unmount of /Users failed: Device busy
operations fail.
> ps ax|grep mount
 1713  p0- D      0:00.00 mount -o rw /Users
 1733  p4  S+     0:00.00 grep mount

> mount -d -o rw /Users
mount -t ext2fs -o ro -o rw /dev/ad4s5 /Users
> mount -d -o remount,rw /Users
mount -t ext2fs -o ro -o remount -o rw /dev/ad4s5 /Users

p.s.: under Linux it is possible to change mount parameters of already mounted file systems with remount.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Yoshihiro Ota <ota@j.email.ne.jp>
To: bug-followup@FreeBSD.org
Cc: estellnb@gmail.com
Subject: Re: misc/131113: mount hangs on attempt to remount as rw
Date: Fri, 30 Jan 2009 01:38:12 -0500

 Elmar,
 
 I suggest you start reading "man mount".
 Because you don't know right options, it does not work as you intended.
 
 Check -u on the man page.
 
 Regards,
 Hiro

From: Elmar Stellnberger <estellnb@googlemail.com>
To: Yoshihiro Ota <ota@j.email.ne.jp>, bug-followup@freebsd.org
Cc:  
Subject: Re: misc/131113: mount hangs on attempt to remount as rw
Date: Sat, 31 Jan 2009 11:24:09 +0100

 The mount command must not hang given any options.
 It must return an error if the given options do not make sense to FreeBSD.
 of course I have already read the entire man page, but there is no
 remount feature.
 so I suggest this as a bug to be fixed.
 
 
 Yoshihiro Ota schrieb:
 > Elmar,
 >
 > I suggest you start reading "man mount".
 > Because you don't know right options, it does not work as you intended.
 >
 > Check -u on the man page.
 >
 > Regards,
 > Hiro
 >
 >   
 

From: Elmar Stellnberger <estellnb@googlemail.com>
To: Yoshihiro Ota <ota@j.email.ne.jp>
Cc: bug-followup@FreeBSD.org
Subject: Re: misc/131113: mount hangs on attempt to remount as rw
Date: Sat, 31 Jan 2009 11:40:18 +0100

 It can`t  be true that the user must reboot FreeBSD just because of a
 wrong mount option.
 To me this is a bug for sure.
 
 Yoshihiro Ota schrieb:
 > Elmar,
 >
 > I suggest you start reading "man mount".
 > Because you don't know right options, it does not work as you intended.
 >
 > Check -u on the man page.
 >
 > Regards,
 > Hiro
 >
 >   
 
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Fri Dec 31 10:54:36 UTC 2010 
State-Changed-Why:  
I couldn't reproduce this on 8.1. 

This works for me: 

# mount -t ext2fs -o ro /dev/ada0s1 /mnt 
# mount 
. 
. 
/dev/ada0s1 on /mnt (ext2fs, local, read-only) 
# mount -u -o rw /mnt 
# mount 
. 
. 
/dev/ada0s1 on /mnt (ext2fs, local) 

If you still see the problem, please provide exact commands to reproduce 
the hang. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131113 
Responsible-Changed-From-To: freebsd-bugs->jh 
Responsible-Changed-By: jh 
Responsible-Changed-When: Fri Dec 31 10:59:45 UTC 2010 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131113 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sat Feb 12 16:38:13 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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