From nobody@FreeBSD.org  Mon Apr 16 09:54:20 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1D2DE37B423
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Apr 2001 09:54:20 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3GGsKe25243;
	Mon, 16 Apr 2001 09:54:20 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104161654.f3GGsKe25243@freefall.freebsd.org>
Date: Mon, 16 Apr 2001 09:54:20 -0700 (PDT)
From: fredette@mit.edu
To: freebsd-gnats-submit@FreeBSD.org
Subject: unmount(2) can't unmount a filesystem whose device has been lost
X-Send-Pr-Version: www-1.0

>Number:         26618
>Category:       kern
>Synopsis:       unmount(2) can't unmount a filesystem whose device has been lost
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trasz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 16 10:00:00 PDT 2001
>Closed-Date:    Wed Jul 08 14:53:35 UTC 2009
>Last-Modified:  Wed Jul 08 14:53:35 UTC 2009
>Originator:     Matthew Fredette
>Release:        4.2_RELEASE
>Organization:
self
>Environment:
FreeBSD test1.home 4.2-RELEASE FreeBSD 4.2-RELEASE #7: Fri Apr 13 17:11:46 EDT 2001 root@home:/usr/src/sys/compile/TEST1  i386
>Description:
unmount(2) can't unmount a filesystem on a device that has been lost.
When the namei() call on the mountpoint fails with ENXIO, unmount
gives up and returns immediately.
>How-To-Repeat:
Mount a single filesystem read-only from a SCSI disk.  Power down
the disk, use 'camcontrol rescan' as appropriate to lose the device.
Now try to unmount the filesystem.
>Fix:
When namei() returns ENXIO on the mountpoint, umount could walk
the list of mounted filesystems looking for the mountpoint itself.
I'll attach a patch to this PR that does this in a followup email.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->iedowse 
Responsible-Changed-By: iedowse 
Responsible-Changed-When: Sat Oct 11 06:40:21 PDT 2003 
Responsible-Changed-Why:  

I'll take this one; it is possible that the read-only mount case 
has already been improved in -CURRENT, as unmount(8) no longer calls 
namei(). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26618 
Responsible-Changed-From-To: iedowse->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jul 31 14:53:09 UTC 2007 
Responsible-Changed-Why:  
With permission, reassign from committer who is away from FreeBSD work for now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26618 
Responsible-Changed-From-To: freebsd-bugs->trasz 
Responsible-Changed-By: trasz 
Responsible-Changed-When: Wed Jul 8 12:33:53 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26618 
State-Changed-From-To: open->feedback 
State-Changed-By: trasz 
State-Changed-When: Wed Jul 8 12:34:00 UTC 2009 
State-Changed-Why:  
Can you still reproduce it with FreeBSD 7.2?  It should be fixed already. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=26618 
State-Changed-From-To: feedback->closed 
State-Changed-By: trasz 
State-Changed-When: Wed Jul 8 14:52:49 UTC 2009 
State-Changed-Why:  
Originator's mail bounces, and I believe the problem is fixed. 


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