From owner-freebsd-current Sat Nov 2 8: 2:21 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D4EA37B401; Sat, 2 Nov 2002 08:02:20 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF56743E75; Sat, 2 Nov 2002 08:02:18 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id DAA06201; Sun, 3 Nov 2002 03:02:05 +1100 Date: Sun, 3 Nov 2002 03:13:23 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG, Subject: Re: GEOM gets whole disk geometry for slice (instead of slice geometry) In-Reply-To: <20021102133715.GA75254@nagual.pp.ru> Message-ID: <20021103025453.D19652-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2 Nov 2002, Andrey A. Chernov wrote: > On Sun, Oct 27, 2002 at 03:37:47 +0300, Andrey A. Chernov wrote: > > I have disk shared between FreeBSD and M$ Win, two slices, and got > > incorrect disklabel with GEOM kernel. Namely "cylinders" and > > "sectors/unit" fields are from _whole_ disk, not from just requested > > slice. > > Just found more brokeness: 'disklabel -r ad0s1' and 'disklabel ad0s1' > shows different results, for -r case 63 added to "offset" field of all a, > b and c partitions. This is because -r causes the raw disk to be read and written, and GEOM is missing the i/o-snooping code that adjusts the offsets even if the labels are accessed by reading and writing the raw disk. > BTW, is there is a way to turn GEOM off, something like NOGEOM kernel > option? I want my old good disklabel back. Just NO_GEOM. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message