Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2002 22:36:38 -0500
From:      Brent Verner <brent@rcfile.org>
To:        current@FreeBSD.ORG
Subject:   problem with nullfs
Message-ID:  <20021231033638.GB95923@rcfile.org>

next in thread | raw e-mail | index | archive | help
A nullfs mounted target cannot be umounted if another target is 
mounted from the same source.  Maybe it has something to do with 
the LOR in the first umount...  I'll see if I can fix this later 
in the week if it hasn't already been fixed.

scratch# uname -a
FreeBSD scratch.rcfile.org 5.0-CURRENT FreeBSD 5.0-CURRENT #27: Mon Dec 30 14:28
:24 EST 2002     root@scratch.rcfile.org:/usr/obj/usr/src/sys/SCRATCH  i386
scratch# mount -t nullfs -oro /usr/ports /jail/10.0.0.75/usr/ports
scratch# umount /jail/10.0.0.75/usr/ports
lock order reversal
 1st 0xc523cce0 process lock (process lock) @ /usr/src/sys/kern/vfs_mount.c:1143
 2nd 0xc5289b34 filedesc structure (filedesc structure) @ /usr/src/sys/kern/vfs_
mount.c:1150
Debugger("witness_lock")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c0498ff5,c5289b34,c04cf6a9,c04cf6a9,c04d8df6) at Debugger+0x54
witness_lock(c5289b34,8,c04d8df6,47e,c04d934f) at witness_lock+0x667
_mtx_lock_flags(c5289b34,0,c04d8df6,47e,0) at _mtx_lock_flags+0xb1
checkdirs(c546a9fc,c546ad50,1,c5236540,0) at checkdirs+0xc8
dounmount(c5366800,0,c5236540,bfbffd67,0) at dounmount+0x188
unmount(c5236540,e1a43d10,c04ec1f2,407,2) at unmount+0xcc
syscall(2f,2f,2f,809ab0e,80b3b3e) at syscall+0x28e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (22, FreeBSD ELF32, unmount), eip = 0x804b3ef, esp = 0xbfbff71c, ebp
 = 0xbfbff798 ---
db> cont
scratch# mount -t nullfs -oro /usr/ports /jail/10.0.0.75/usr/ports
scratch# umount /jail/10.0.0.75/usr/ports
scratch# mount -t nullfs -oro /usr/ports /jail/10.0.0.75/usr/ports
scratch# umount /jail/10.0.0.75/usr/ports
scratch# mount -t nullfs -oro /usr/ports /jail/10.0.0.75/usr/ports
scratch# mount -t nullfs -oro /usr/ports /jail/10.0.0.76/usr/ports
scratch# umount /jail/10.0.0.75/usr/ports
umount: unmount of /jail/10.0.0.75/usr/ports failed: Device busy
scratch# umount /jail/10.0.0.76/usr/ports
umount: unmount of /jail/10.0.0.76/usr/ports failed: Device busy


cheers.
  b

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

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




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