From owner-freebsd-hackers Wed Aug 14 10:52:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA17511 for hackers-outgoing; Wed, 14 Aug 1996 10:52:32 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA17506 for ; Wed, 14 Aug 1996 10:52:30 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id KAA29411; Wed, 14 Aug 1996 10:44:14 -0700 From: Terry Lambert Message-Id: <199608141744.KAA29411@phaeton.artisoft.com> Subject: Re: Nightmare. To: jgreco@brasil.moneng.mei.com (Joe Greco) Date: Wed, 14 Aug 1996 10:44:14 -0700 (MST) Cc: terry@lambert.org, jgreco@brasil.moneng.mei.com, ulf@lamb.net, jkh@time.cdrom.com, hackers@freebsd.org In-Reply-To: <199608141721.MAA12196@brasil.moneng.mei.com> from "Joe Greco" at Aug 14, 96 12:21:10 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > Consider all the programs that could clobber a mounted file system. Would > > > it make more sense if we somehow protected a mounted disk device from > > > being clobbered? > > > > Yes. Disable the raw device for mounted disks. The stacking > > architecture disallows (since it internall references the vnodes) a > > device level soloution that does anything to the non-raw device. > > > > If we can get past the point where devfs is a mandatory item, then we > > can fix all of this without breaking FS stacking. There is no soloution > > otherwise that could not be broken by a clever idiot. > > Would it make more sense to just disable _writes_ to raw devices for mounted > disks? (probably writes to both devices, for that matter) > > I am thinking specifically of using dump,dd,etc to read a mounted file > system for some useful purpose. Doesn't dump take the mount point name, not the device, as an argument? It doesn't document which device it needs in the man page very well, but the exmaple clear shows "/usr/src" as the "[filesystem]" reference. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.