From owner-freebsd-current Sun Oct 13 10:22:23 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 4376837B401 for ; Sun, 13 Oct 2002 10:22:22 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F8E143E7B for ; Sun, 13 Oct 2002 10:22:21 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (localhost [127.0.0.1]) by bremen.shuttle.de (Postfix) with ESMTP id D567F17D69; Sun, 13 Oct 2002 19:22:19 +0200 (CEST) Received: (from uucp@localhost) by bremen.shuttle.de (8.12.3/8.12.3/Debian -4) with UUCP id g9DHMJkY019565; Sun, 13 Oct 2002 19:22:19 +0200 Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.12.6/8.12.6) with ESMTP id g9DHLfeo087420; Sun, 13 Oct 2002 19:21:41 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.6/8.12.3/Submit) id g9DHLfMu087419; Sun, 13 Oct 2002 19:21:41 +0200 (CEST) Date: Sun, 13 Oct 2002 19:21:41 +0200 From: Jens Schweikhardt To: Poul-Henning Kamp Cc: current@FreeBSD.ORG Subject: Re: GEOM and NetBSD partitions/disklabels Message-ID: <20021013172141.GA76272@schweikhardt.net> References: <20021013151535.GA66616@schweikhardt.net> <6071.1034522411@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6071.1034522411@critter.freebsd.dk> User-Agent: Mutt/1.4i 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 Sun, Oct 13, 2002 at 05:20:11PM +0200, Poul-Henning Kamp wrote: # In message <20021013151535.GA66616@schweikhardt.net>, Jens Schweikhardt writes: # >Poul-Henning et al, # > # >recently I've tried installing NetBSD on a new disk. I'm not sure if the # >following is a coincidence (because it never worked before, even without # >GEOM) or is due to GEOM issues. My -current is from Oct 12 and the kernel # >derived from GENERIC, plus/minus devices/options to match my hardware. # > # >NetBSD uses sysid 169 for their slice and a new style disklabel with 16 # >partitions. FreeBSD is unable to deal with that disklabel, it seems. # # We never had to ability to do this before. GEOM can probably do it for # you, with something like this patch: [snip] Thanks for the quick answer. As-is, the compile fails with In file included from /src/current/sys/geom/geom_bsd.c:62: /src/current/sys/sys/disklabel.h:174: size of array `__assert174' is negative *** Error code 1 because of the compile time assert in disklabel.h, #ifdef CTASSERT CTASSERT(sizeof(struct disklabel) == 276); #endif Another question before I adjust this to make it work: how will this interact with devfs? My ultimate goal is to mount NetBSD partitions on FreeBSD, e.g. /dev/da4s2[ae-p] (preferably read-write). There is more work needed in a bunch of other files, right? If yes, could this be a candidate for the JKH list? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message