Re: bsdlabel problem

From: Takahashi Yoshihiro <nyan_at_jp.FreeBSD.org>
Date: Tue, 13 May 2003 20:17:20 +0900 (JST)
In article <13555.1052770820_at_critter.freebsd.dk>
"Poul-Henning Kamp" <phk_at_phk.freebsd.dk> writes:

> can you try with this patch ?

> +				} else if (!strcmp(optarg, "pc98")) {
> +					labeloffset = 1024;
> +					bbsize = 8192;
> +					alphacksum = 0;

labeloffset is 512 not 1024.  So, the patch is able to be more simple.


Index: bsdlabel.c
===================================================================
RCS file: /home/ncvs/src/sbin/bsdlabel/bsdlabel.c,v
retrieving revision 1.92
diff -u -r1.92 bsdlabel.c
--- bsdlabel.c	9 May 2003 20:26:17 -0000	1.92
+++ bsdlabel.c	13 May 2003 11:09:02 -0000
_at__at_ -161,7 +161,8 _at__at_
 				xxboot = optarg;
 				break;
 			case 'm':
-				if (!strcmp(optarg, "i386")) {
+				if (!strcmp(optarg, "i386") ||
+				    !strcmp(optarg, "pc98")) {
 					labeloffset = 512;
 					bbsize = 8192;
 					alphacksum = 0;

---
TAKAHASHI Yoshihiro <nyan_at_FreeBSD.org>
Received on Tue May 13 2003 - 02:17:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:07 UTC