Date: Mon, 7 Jun 1999 12:10:44 -0400 (EDT) From: "Chris D. Faulhaber" <jedgar@fxp.org> To: Junichi Satoh <junichi@junichi.org> Cc: hackers@freebsd.org Subject: Re: wfd.c and ATAPI Zip Message-ID: <Pine.BSF.4.10.9906071204440.10703-100000@pawn.primelocation.net> In-Reply-To: <199906071502.AAA00351@norn.junichi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Here is a patch that checks for the revision numbers instead of simply the inquiry string (and adds my buggy revision): --- wfd.c.orig Thu Feb 18 17:06:08 1999 +++ wfd.c Mon Jun 7 12:02:25 1999 @@ -243,17 +243,21 @@ return -1; /* - * The IOMEGA ZIP 100, at firmware 21.* and 23.* at least + * The IOMEGA ZIP 100, at firmware 12.A, 21.* and 23.* at least * is known to lock up if transfers > 64 blocks are * requested. */ - if (!strcmp(ap->model, "IOMEGA ZIP 100 ATAPI")) { - printf("wfd%d: buggy Zip drive, 64-block transfer limit set\n", - t->lun); - t->maxblks = 64; - } else { - t->maxblks = 0; /* no limit */ - } + + if (!strncmp(ap->model, "IOMEGA ZIP 100 ATAPI", 27)) + if ((!strncmp(ap->revision, "12", 2)) || + (!strncmp(ap->revision, "21", 2)) || + (!strncmp(ap->revision, "23", 2))) { + printf("wfd%d: buggy Zip drive, 64-block transfer limit set\n", + t->lun); + t->maxblks = 64; + } else { + t->maxblks = 0; /* no limit */ + } ----- Chris D. Faulhaber <jedgar@fxp.org> | All the true gurus I've met never System/Network Administrator, | claimed they were one, and always Reality Check Information, Inc. | pointed to someone better. 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?Pine.BSF.4.10.9906071204440.10703-100000>