Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2001 08:10:07 -0800 (PST)
From:      Samuel Tardieu <sam@inf.enst.fr>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/24271: dumpon should check its argument more
Message-ID:  <200101121610.f0CGA7a52473@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/24271; it has been noted by GNATS.

From: Samuel Tardieu <sam@inf.enst.fr>
To: Bruce Evans <bde@zeta.org.au>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24271: dumpon should check its argument more
Date: Fri, 12 Jan 2001 16:48:57 +0100

 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".
 
   Sam
 
 
 


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




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