From owner-freebsd-bugs Fri Jan 12 18:40:24 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 70E9537B69C for ; Fri, 12 Jan 2001 18:40:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0D2e5x51228; Fri, 12 Jan 2001 18:40:05 -0800 (PST) (envelope-from gnats) Date: Fri, 12 Jan 2001 18:40:05 -0800 (PST) Message-Id: <200101130240.f0D2e5x51228@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/24271: dumpon should check its argument more Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/24271; it has been noted by GNATS. From: Bruce Evans To: Samuel Tardieu Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/24271: dumpon should check its argument more Date: Sat, 13 Jan 2001 13:38:57 +1100 (EST) On Fri, 12 Jan 2001, Samuel Tardieu wrote: > On 12/01, Bruce Evans wrote: > | On Fri, 12 Jan 2001 sam@inf.enst.fr wrote: > | > | > >Description: > | > dumpon should check that the argument is not a disk slice, or should > | > require a flag (-f?) in this case. It would prevent bad crashes :/ > | > | This is a feature. dumpon (like swapon and newfs) should work on any disk > | device, including the whole disk. It currently only works on disk devices > | whose containing slice is labeled, so it can only be misused to clobber > | BSD slices and not OtherOS slices (this is a bug :-). > > I would recommend to add a "-f" option anyway. It is way too easy to set > (as I did yesterday) "dumpdev=/dev/ad0s2" in your rc.conf and be very > surprised after a crash. If you really want to do this, you could do it > with a "dumpon_flags=-f". It's no easier than setting "dumpdev=/dev/ad0s2c" or configuring swap on /dev/ad0s2c when you really meant /dev/ad0s2b. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message