Date: Mon, 26 Oct 1998 13:17:28 +0900 From: Satoh Junichi <junichi@astec.co.jp> To: freebsd-hackers@FreeBSD.ORG Subject: libdisk problem Message-ID: <19981026131728H.junichi@astec.co.jp>
next in thread | raw e-mail | index | archive | help
----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981026131728H.junichi>