Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 11:28:56 +1030
From:      Greg Lehey <grog@lemis.com>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        Samuel Tardieu <sam@inf.enst.fr>, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/24271: dumpon should check its argument more
Message-ID:  <20010113112856.C66238@wantadilla.lemis.com>
In-Reply-To: <20010113004100.A12683@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Sat, Jan 13, 2001 at 12:41:00AM %2B0000
References:  <200101121610.f0CGA7a52473@freefall.freebsd.org> <20010113095245.A66238@wantadilla.lemis.com> <20010113004100.A12683@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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