From simon@comsys.ntu-kpi.kiev.ua  Tue Aug 30 08:39:06 2005
Return-Path: <simon@comsys.ntu-kpi.kiev.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7295416A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Aug 2005 08:39:06 +0000 (GMT)
	(envelope-from simon@comsys.ntu-kpi.kiev.ua)
Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [195.245.194.142])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5F8D743D45
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Aug 2005 08:39:03 +0000 (GMT)
	(envelope-from simon@comsys.ntu-kpi.kiev.ua)
Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109])
	(authenticated bits=0)
	by comsys.ntu-kpi.kiev.ua (8.12.10/8.12.10) with ESMTP id j7U8ki82067396
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Aug 2005 11:46:45 +0300 (EEST)
Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000)
	id B89B42FA; Tue, 30 Aug 2005 11:36:40 +0300 (EEST)
Message-Id: <20050830083640.GA277@pm514-9.comsys.ntu-kpi.kiev.ua>
Date: Tue, 30 Aug 2005 11:36:40 +0300
From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Cannot unmount file-backed disk imported from NFS or SMBFS

>Number:         85464
>Category:       kern
>Synopsis:       Cannot unmount file-backed disk imported from NFS or SMBFS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 30 08:40:16 GMT 2005
>Closed-Date:    Wed Oct 12 16:31:39 UTC 2011
>Last-Modified:  Wed Oct 12 16:31:39 UTC 2011
>Originator:     Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

FreeBSD 5.4-STABLE i386

>Description:

Cannot unmount file-backed disk imported from NFS or SMBFS:

1.	Create file-backed disk on the server, put it on exported
	file system by NFS or SMBFS.

2.	On a client mount exported NFS or SMBFS file system.

3.	Run mdconfig to attach file-backed disk from mounted NFS or
	SMBFS file system and mount it (I worked with UFS file-backed
	disks).

4.	Then try to unmount file-backed disk.

The kernel shows following messages and refuses to unmount it:

For SMBFS:

Aug 30 10:04:27 comp1 kernel: fsync: giving up on dirty: 0xc149db58:
tag devfs, type VCHR, usecount 4, writecount 0, refcount 4, flags (VV_OBJBUF),
lock type devfs: EXCL (count 1) by thread 0xc111e780 (pid 555)
Aug 30 10:04:27 comp1 kernel: dev md0c

For NFS:

Aug 30 11:15:11 pm514-9 kernel: fsync: giving up on dirty: 0xc1a2f210:
tag devfs, type VCHR, usecount 3, writecount 0, refcount 4, flags (VV_OBJBUF),
lock type devfs: EXCL (count 1) by thread 0xc12d9480 (pid 492)
Aug 30 11:15:11 pm514-9 kernel: dev md0c

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Garrett Cooper <yanegomi@gmail.com>
To: bug-followup@FreeBSD.org, simon@comsys.ntu-kpi.kiev.ua
Cc:  
Subject: Re: kern/85464: Cannot unmount file-backed disk imported from NFS
 or SMBFS
Date: Tue, 11 Oct 2011 18:35:28 -0700 (PDT)

  	This is to be expected with any version of Unix when not mounting 
 with -o soft if the underlying filesystem goes away. This isn't a bug but 
 instead a well known caveat with network-based filesystems.
  	I suggest closing this bug with that in mind.
 Thanks,
 -Garrett

From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/85464: Cannot unmount file-backed disk imported from NFS or
 SMBFS
Date: Wed, 12 Oct 2011 14:06:57 +0300

 On Tue, Oct 11, 2011 at 06:35:28PM -0700, Garrett Cooper wrote:
 >  	This is to be expected with any version of Unix when not mounting 
 > with -o soft if the underlying filesystem goes away. This isn't a bug but 
 > instead a well known caveat with network-based filesystems.
 >  	I suggest closing this bug with that in mind.
 
 I described absolutely another bug on 5.4-STABLE.  It was impossible to
 unmount file-backed disk (attached by 'mdconfig -a -t vnode -f ...') from
 mounted NFS file system on a client system.
 
 Since I could not reproduce this bug on 8.2-STABLE with new NFS client
 and server, this PR can be closed.
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 16:31:37 UTC 2011 
State-Changed-Why:  
Submitter mentions this PR can be closed. 

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