From owner-freebsd-fs Sat Nov 6 10:33:55 1999 Delivered-To: freebsd-fs@freebsd.org Received: from hromeo.algonet.se (hromeo.algonet.se [194.213.74.10]) by hub.freebsd.org (Postfix) with SMTP id 7BCDA14E82 for ; Sat, 6 Nov 1999 10:33:48 -0800 (PST) (envelope-from mal@algonet.se) Received: (qmail 22267 invoked from network); 6 Nov 1999 19:33:47 +0100 Received: from enok.algonet.se (194.213.74.88) by hromeo.algonet.se with SMTP; 6 Nov 1999 19:33:47 +0100 Received: from kairos.algonet.se ([194.213.74.18]) by algonet.se (BLUETAIL Mail Robustifier1.0.4) with ESMTP ; Sat, 06 Nov 1999 18:33:47 GMT Received: (mal@localhost) by kairos.algonet.se (8.8.8+Sun/8.6.12) id TAA04881; Sat, 6 Nov 1999 19:33:46 +0100 (MET) To: freebsd-fs@freebsd.org Subject: Re: stupidfs - easily extensible test file systems? References: <80113h$n8e$1@FreeBSD.csie.NCTU.edu.tw> From: Mats Lofkvist Date: 06 Nov 1999 19:33:46 +0100 In-Reply-To: julian@whistle.com's message of "6 Nov 1999 18:49:21 +0800" Message-ID: Lines: 25 X-Mailer: Gnus v5.6.45/Emacs 20.3 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org julian@whistle.com (Julian Elischer) writes: > On Fri, 5 Nov 1999, Jan Pechanec wrote: > > > > BTW, don't you know why deadfs was written? No doc in FreeBSD. > > From what I saw in the source code, operations just fail. > > > When youhave a vnode open, and for some reason the filesystem the vmode > pints to disappears (e.g. the disk is removed, or the PC-CARD is removed, > or many other posibilties), then you cannot track down all teh users fo > that vnode very easily, so insteadm you 'fiddle' with it to make it > reference the DEADFS (use VGONE) and when the users try use it again they > will safely get an error, but at least the system will > not core-dump when they access a non existant filesyste,/device. I guess deadfs is what makes the -f (force) flag to umount work also, and that one is a truly great feature in FreeBSD missing in many other unixen (e.g. solaris {and linux, I believe}). Having to track down all processes with open descriptors on e.g. a nfs mount before being able to umount it is a real pain in the *, most times I give up on it and reboot the machine instead. _ Mats Lofkvist mal@algonet.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message