Subject: change hp700 disklabel location
To: None <port-hp700@netbsd.org, tech-kern@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: port-hp700
Date: 10/19/2003 01:18:32
I asked this before and no response, and asking again.

Current disklabel of hp700 is conflicts with LIF header and I'd like
to change the location.

On hp700, the disklabel is at LABELSECTOR=0, LABELOFFSET=64.
However, the LIF header (struct lifvol in <hp700/disklabel.h>)
uses the top 256bytes of a boot device,
which conflicts with the disklabel location.

HP-UX doen't seem to have disklabel (LVM only -- I looked at HP-UX 10.20),
and I think picking any value is okay....

I chose the location LABELSECTOR=1, LABELOFFSET=0,
which is used on many archs.
Do you think it okay to commit this change?

Regards,
-- 
ITOH Yasufumi

Index: disklabel.h
===================================================================
RCS file: /cvsroot/src/sys/arch/hp700/include/disklabel.h,v
retrieving revision 1.2
diff -u -r1.2 disklabel.h
--- disklabel.h	28 Nov 2002 06:06:13 -0000	1.2
+++ disklabel.h	18 Oct 2003 15:20:29 -0000
@@ -50,8 +50,8 @@
 #define	I386_LABELOFFSET	0		/* offset of label in sector */
 #define	AMIGA_LABELSECTOR	0		/* sector containing label */
 #define	AMIGA_LABELOFFSET	64		/* offset of label in sector */
-#define	HPPA_LABELSECTOR	0		/* sector containing label */
-#define	HPPA_LABELOFFSET	64		/* offset of label in sector */
+#define	HPPA_LABELSECTOR	1		/* sector containing label */
+#define	HPPA_LABELOFFSET	0		/* offset of label in sector */
 
 #define LABELSECTOR		HPPA_LABELSECTOR
 #define LABELOFFSET		HPPA_LABELOFFSET