From owner-freebsd-hackers Mon Jun 7 9:12: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with SMTP id 0E55E157C1 for ; Mon, 7 Jun 1999 09:10:44 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: (qmail 10903 invoked by uid 1003); 7 Jun 1999 16:10:44 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Jun 1999 16:10:44 -0000 Date: Mon, 7 Jun 1999 12:10:44 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@pawn.primelocation.net To: Junichi Satoh Cc: hackers@freebsd.org Subject: Re: wfd.c and ATAPI Zip In-Reply-To: <199906071502.AAA00351@norn.junichi.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 | 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