Date: Wed, 15 Jun 2005 17:04:51 -0700 From: "Loren M. Lang" <lorenl@alzatex.com> To: freebsd-geom@freebsd.org Subject: NetBSD/OpenBSD Disklabels Message-ID: <20050616000451.GA12623@alzatex.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] I have been working on patching geom_bsd to be able to read netbsd and openbsd disklabels that I have on my quad boot system. I currently have it working, but I have a couple of questions about the proper way to do this. The two major changes I had to make to geom_bsd were to increase the number of partitions from 8 to 16. I did this by defining MAXPARTITIONS before any of the header files were included. The second change was to fix the offset calculations of the partitions. Since the c and d partitions are done a little differently, I couldn't rely on there offsets to detect the offset of the disklabels. I decided to use the a partition instead since that's starts at the beginning of the slice 99% of the time. The most correct answer might be to ask the MBR label what it's offset is if there is an MBR label underneath. The logic in geom_bsd seems to be that all offsets are relative to disk where the c partitions offset starts at the disklabel unless any partition starts before c, then offsets are assumed relative to the disklabel. The patch I am using is: http://www.tallye.com/~sttng359/unix/netbsd-dl.patch -- 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: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCsMIjbTXoRwEYo9IRAsM9AJ0fOE7l25czCs87J+Lj4aEbbm2tTwCfbLsC FLWUaYQD4Flpkxgvw3RqBmk= =PbgJ -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050616000451.GA12623>
