From owner-freebsd-bugs Fri Jan 12 16:59:20 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id E0F5337B402 for ; Fri, 12 Jan 2001 16:59:01 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 81F726ABFF; Sat, 13 Jan 2001 11:28:56 +1030 (CST) Date: Sat, 13 Jan 2001 11:28:56 +1030 From: Greg Lehey To: David Malone Cc: Samuel Tardieu , freebsd-bugs@FreeBSD.org Subject: Re: bin/24271: dumpon should check its argument more Message-ID: <20010113112856.C66238@wantadilla.lemis.com> References: <200101121610.f0CGA7a52473@freefall.freebsd.org> <20010113095245.A66238@wantadilla.lemis.com> <20010113004100.A12683@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010113004100.A12683@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Sat, Jan 13, 2001 at 12:41:00AM +0000 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Saturday, 13 January 2001 at 0:41:00 +0000, David Malone wrote: > On Sat, Jan 13, 2001 at 09:52:45AM +1030, Greg Lehey wrote: > >> Agreed. There may be reasons to accept that you want to use an entire >> slice for your dump device, though I can't think of a convincing one, >> but it certainly shouldn't be the default. > > If you were sharing a swap partition with Linux I can imagine > you wanting to do this. Right, there's one. > In tune with the Unix way (providing you with enough rope to shoot > yourself in the foot) it probably shouldn't check even if it was > easy to. After all, it's just as easy to accidently dump onto one > of your filesystems, That's what we have partition types for: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 4194304 1048576 4.2BSD 1024 8192 16 # (Cyl. 65*- 326*) b: 1048303 273 swap # (Cyl. 0*- 65*) c: 40088160 0 unused 0 0 # (Cyl. 0 - 2495*) e: 34845280 5242880 4.2BSD 1024 8192 16 # (Cyl. 326*- 2495*) f: 40088152 8 vinum # (Cyl. 0*- 2495*) > and there's no way to accidently detect that! No, you need to do it deliberately :-) Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message