NetBSD Problem Report #406

From gnats  Tue Aug  9 16:55:20 1994
Received: from white.dogwood.com (root@dogwood.com [140.174.85.10]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id QAA00315 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 9 Aug 1994 16:55:15 -0700
Message-Id: <199408092335.QAA05511@white.dogwood.com>
Date: Tue, 9 Aug 1994 16:35:31 -0700
From: Dave Cornejo <dave@dogwood.com>
Reply-To: dave@dogwood.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: nullfs unmounting problems
X-Send-Pr-Version: 3.2

>Number:         406
>Category:       kern
>Synopsis:       nullfs cannot be unmounted in certain cases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 09 17:05:05 +0000 1994
>Closed-Date:    Fri Sep 16 21:23:06 +0000 1994
>Last-Modified:  
>Originator:     Dave Cornejo
>Release:        
>Organization:
Dave Cornejo                                There is nothing so subtle
Dogwood Media                                           as the obvious
Fremont, California
>Environment:

System: NetBSD white.dogwood.com 1.0_BETA NetBSD 1.0_BETA (DOGWOOD) #0: Thu Aug 4 07:39:31 PDT 1994 dave@white.dogwood.com:/u1/src/sys/arch/i386/compile/DOGWOOD i386


>Description:
I have found some cases where you apparently cannot unmount a nullfs.
I have a CD-ROM (cd0a) mounted on /cdrom, then from ~ftp/pub I mounted
a nullfs on /cdrom/xxx using the command

  mount -t cd9660 -r /cdrom/xxx xxx

This now cannot be dismounted by using umount on either /cdrom/xxx,
xxx, ~ftp/pub/xxx, or ./xxx.  If you specify the *full path* when you
mount, you can then unmount it using the full path, so

  mount -t cd9660 -r /cdrom/xxx /home/ftp/pub/xxx
  umount /home/ftp/pub/xxx

will work.  I also note that while you can unmount, say sd0h using
either the device or the mount point, you can only use the mount point
with a null fs, which may be appropriate.

It sort of looks like umount wants to see a full pathname for the
mount point.  Either umount or mount should be fixed so that you can't
get into this deadlock.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Sep 16 14:23:06 PDT 1994 
State-Changed-Why:  
This is a duplicate of a later (and more correct) bug report. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.