From owner-freebsd-hackers Sun Oct 25 20:18:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA23493 for freebsd-hackers-outgoing; Sun, 25 Oct 1998 20:18:08 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tokyonet-entrance.astec.co.jp (tokyonet-entrance.astec.co.jp [202.239.16.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23488 for ; Sun, 25 Oct 1998 20:18:05 -0800 (PST) (envelope-from junichi@astec.co.jp) Received: from amont.astec.co.jp (amont.astec.co.jp [172.20.10.1]) by tokyonet-entrance.astec.co.jp (8.9.1+3.0W/3.7W-astecMX2.3) with ESMTP id NAA06812 for ; Mon, 26 Oct 1998 13:17:29 +0900 (JST) Received: from localhost (sakura.astec.co.jp [172.20.10.61]) by amont.astec.co.jp (8.7.6/3.6W-astecMX2.4) with ESMTP id NAA20662 for ; Mon, 26 Oct 1998 13:17:28 +0900 (JST) To: freebsd-hackers@FreeBSD.ORG Subject: libdisk problem X-Mailer: Mew version 1.93pre1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Oct_26_13:17:23_1998_595)--" Content-Transfer-Encoding: 7bit Message-Id: <19981026131728H.junichi@astec.co.jp> Date: Mon, 26 Oct 1998 13:17:28 +0900 From: Satoh Junichi X-Dispatcher: imput version 980815 Lines: 65 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----Next_Part(Mon_Oct_26_13:17:23_1998_595)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit I found the Write_Disk() in libdisk doesn't support any length of device name. It supports only two characters. So, I can not create slices on the 'wfd' using /stand/sysinstall which links the libdisk. I made a patch against /usr/src/lib/libdisk/write_disk.c of -current to support any device names. Can anyone commit it? --- Junichi ----Next_Part(Mon_Oct_26_13:17:23_1998_595)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=write_disk.diff *** write_disk.c.org Tue Oct 6 20:57:08 1998 --- write_disk.c Thu Oct 22 21:46:09 1998 *************** *** 64,73 **** for(c2=c1->part;c2;c2=c2->next) { if (c2->type == unused) continue; if (!strcmp(c2->name,"X")) continue; ! j = c2->name[5] - 'a'; if (j < 0 || j >= MAXPARTITIONS || j == RAW_PART) { #ifdef DEBUG ! warn("Weird parititon letter %c",c2->name[5]); #endif continue; } --- 64,73 ---- for(c2=c1->part;c2;c2=c2->next) { if (c2->type == unused) continue; if (!strcmp(c2->name,"X")) continue; ! j = c2->name[strlen(new->name) + 2] - 'a'; if (j < 0 || j >= MAXPARTITIONS || j == RAW_PART) { #ifdef DEBUG ! warn("Weird parititon letter %c",c2->name[strlen(new->name) + 2]); #endif continue; } *************** *** 172,178 **** for (c1=d1->chunks->part; c1 ; c1 = c1->next) { if (c1->type == unused) continue; if (!strcmp(c1->name,"X")) continue; ! j = c1->name[4] - '1'; if (j < 0 || j > 3) continue; s[j]++; --- 172,178 ---- for (c1=d1->chunks->part; c1 ; c1 = c1->next) { if (c1->type == unused) continue; if (!strcmp(c1->name,"X")) continue; ! j = c1->name[strlen(d1->name) + 1] - '1'; if (j < 0 || j > 3) continue; s[j]++; ----Next_Part(Mon_Oct_26_13:17:23_1998_595)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message