From owner-freebsd-geom@FreeBSD.ORG Fri Feb 11 10:23:27 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAE1C16A4D0 for ; Fri, 11 Feb 2005 10:23:27 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 175E843D45 for ; Fri, 11 Feb 2005 10:23:25 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j1BANOGf004644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Feb 2005 02:23:24 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j1BANNt7004642 for freebsd-geom@freebsd.org; Fri, 11 Feb 2005 02:23:23 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Fri, 11 Feb 2005 02:23:23 -0800 From: "Loren M. Lang" To: freebsd-geom@freebsd.org Message-ID: <20050211102323.GA4287@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: NetBSD and OpenBSD label geoms. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 10:23:28 -0000 I have a quad-boot system with Gentoo Linux, FreeBSD, OpenBSD, and NetBSD. I was disappointed to see that none of the BSD's can see each other. (Linux could read at least 2 if not all of them.) So, I'd like to rectify that by making FreeBSD be able to read the NetBSD disklabel and then OpenBSD's disklabel. I'm thinking it will be easiest to copy the FreeBSD disklabel geom and modify it to work with NetBSD, and then merge it back into the FreeBSD disklabel code if it's still very similar. I've been looking through the disklabel data structure for both NetBSD and FreeBSD and they still seem to be very similar, in fact, maybe even identical for the typical usage. The main differnce is that netbsd seems to have replaced some of the variables with unions that include the original variable in the union. The unions are not any bigger than the original variable, and the other entries in the union seem to be for other purposes like a different filesystem than FFS. This make be believe that the only real difference between the two OSes is how the fields are interpreted. The next step I think would be for me to write a program that reads /dev/adXSY and prints out the fields so I can compare the two and see how they differ. I'd be interested to hear any thoughts others might have on this issue. Also, has there been any work on something like this before that may be useful? -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C