From owner-freebsd-fs Tue Nov 9 0:46:16 1999 Delivered-To: freebsd-fs@freebsd.org Received: from akat.civ.cvut.cz (akat.civ.cvut.cz [147.32.235.105]) by hub.freebsd.org (Postfix) with SMTP id 631F014EA7 for ; Tue, 9 Nov 1999 00:46:05 -0800 (PST) (envelope-from pechy@hp735.cvut.cz) Received: from localhost (pechy@localhost) by akat.civ.cvut.cz (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA05498; Tue, 9 Nov 1999 09:45:55 +0100 Date: Tue, 9 Nov 1999 09:45:55 +0100 From: Jan Pechanec X-Sender: pechy@akat.civ.cvut.cz To: Mats Lofkvist Cc: freebsd-fs@FreeBSD.ORG Subject: Re: stupidfs - easily extensible test file systems? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 6 Nov 1999, Mats Lofkvist wrote: >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. I am not so experienced with FreeBSD, but SGI IRIX has ``fuser'' command. This command can find all processes that has open files inside the mounted fs. You can easily write a script that kill them all. Jan. -- Jan PECHANEC (mailto:pechy@hp735.cvut.cz) Computing Center CTU (Zikova 4, Praha 6, 166 35, Czech Republic) www.civ.cvut.cz, pechy.civ.cvut.cz, tel: +420 2 24352969 (fax: 24310271) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message