Subject: Re: disk label support?
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: port-sgimips
Date: 09/23/2001 23:44:16
On Sun, 23 Sep 2001, Christopher SEKIYA wrote:
> Appended is a patch that appears to DTRT for disklabels. A BSD disklabel is
> derived from the SGI disklabel (if it exists) and placed in sector 1. Slices
> 3 and 10 are swapped to keep things consistent.
>
> This diff is not 100% good-to-go yet. I intended to do more sanity checking and
> the like, but my timing was really bad and I've very little time to hack
> anymore :(
Looks good!
before:
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 17676630 3753 4.2BSD 1024 8192 16 # (Cyl. 3*- 14201*)
b: 261459 17680383 4.2BSD 1024 8192 16 # (Cyl. 14201*- 14411*)
i: 3753 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 3*)
k: 17941842 0 unknown # (Cyl. 0 - 14411*)
after:
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 17676630 3753 4.2BSD 1024 8192 16 # (Cyl. 3 - 14132)
b: 261459 17680383 swap # (Cyl. 14133 - 14341)
c: 17941842 0 unknown # (Cyl. 0 - 14341)
d: 3753 0 unknown # (Cyl. 0 - 2)
What exactly is in that volume header on partition 'd'?
Can it be overwritten, or should that better not happen?
If not, maybe we should make 'd' be from sector 0 to the end,
and 'c' be from sector 3753 (is this a fixed number?) to then end?
That'd probably even more conforming with the i386 port then.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/