From owner-freebsd-stable@FreeBSD.ORG Mon Jan 25 09:45:42 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83DC61065672; Mon, 25 Jan 2010 09:45:42 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D88A88FC0C; Mon, 25 Jan 2010 09:45:41 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.3) with ESMTP id o0P9jWjl084189; Mon, 25 Jan 2010 09:45:33 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o0P9jWjl084189 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1264412733; bh=6PXE7g/CMqQJaqwG5UkX03GLmxcMsXlHMEt3wgSv39E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B5D6833.6050200@infracaninophile.co.uk>|Date:=20M on,=2025=20Jan=202010=2009:45:23=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20100114)|MIME-Vers ion:=201.0|To:=20Andriy=20Gapon=20|CC:=20Robert=2 0Noland=20,=20=0D=0A=20FreeBSD-STABLE=20Maili ng=20List=20,=0D=0A=20freebsd-question s@freebsd.org,=20Mark=20Andrews=20|Subject:=20Re:=2 0Loader,=20MBR=20and=20the=20boot=20process|References:=20=09<201001220 41237.GA22312@gothschlampen.com>=09=09=09<20100124092947.B72039@starfire.mn. org>=09=09<201001242057.o0OKvHUE089237@drugs.dv.isc.org>=09<1264387282. 2869.24.camel@balrog.2hip.net>=20<4B5D6207.9090105@icyb.net.ua>|In -Reply-To:=20<4B5D6207.9090105@icyb.net.ua>|X-Enigmail-Version:=20 0.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3 B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bounda ry=3D"------------enig92565AFF53C5CD32CB9CF14E"; b=hgxXeTmMviZXjvOPkkUa0fSOcWaJkJvZir1MqbInf+nDOIEgC2Ex+L5m2SWbqhn/h QLqwJ7AI4zaDsf9ZRs31Zh2Q9AlKxf4MxXO4v4v+2cqhS5utk1GVFMHddNXRzEI+XZ S1DY961vLegm9QHllFitVKS07GZG4AjhvmTfR0Z4= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B5D6833.6050200@infracaninophile.co.uk> Date: Mon, 25 Jan 2010 09:45:23 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20100114) MIME-Version: 1.0 To: Andriy Gapon References: <20100122041237.GA22312@gothschlampen.com> <20100124092947.B72039@starfire.mn.org> <201001242057.o0OKvHUE089237@drugs.dv.isc.org> <1264387282.2869.24.camel@balrog.2hip.net> <4B5D6207.9090105@icyb.net.ua> In-Reply-To: <4B5D6207.9090105@icyb.net.ua> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig92565AFF53C5CD32CB9CF14E" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD-STABLE Mailing List , freebsd-questions@freebsd.org, Robert Noland Subject: Re: Loader, MBR and the boot process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 09:45:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig92565AFF53C5CD32CB9CF14E Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: quoted-printable Andriy Gapon wrote: > on 25/01/2010 04:41 Robert Noland said the following: >> On Mon, 2010-01-25 at 07:57 +1100, Mark Andrews wrote: >>> offset The offset of the start of the partition from the beginn= ing of >>> the drive in sectors, or * to have bsdlabel calculate th= e correct >>> offset to use (the end of the previous partition plus on= e, ignor- >>> ing partition `c'. For partition `c', * will be interpr= eted as >>> an offset of 0. The first partition should start at off= set 16, >>> because the first 16 sectors are reserved for metadata. >> Ok, now this has my attention... My gut feeling right now is that this= >> is a bug in geom_part_bsd. I don't understand why the label isn't >> protected. (Adding -b 16 when adding the swap partition fixes this) >> Another project to goes on my list... >> >> If anyone knows why this is done like this... please share. >=20 > I presume that this is for purely historic reasons. >=20 I believe this has been known about since 5.x days: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D72812 As far as I recall, sometime around 6.1-RELEASE this should have been fixed. It certainly seems to be the case that it is harmless to have=20 a plain swap partition start at offset 0, but anything else, like encrypt= ed swap or putting a filesystem there needs the 16 sector offset. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig92565AFF53C5CD32CB9CF14E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktdaDwACgkQ8Mjk52CukIyGdQCfcUh+FFXVu1qBJOvJS6c+BNLD YaEAnRvo4aW3DSv+eZrW88/TMtt/848q =Q6zY -----END PGP SIGNATURE----- --------------enig92565AFF53C5CD32CB9CF14E--