From owner-freebsd-scsi Mon Mar 22 11:12:27 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (Postfix) with ESMTP id 5F20B15074 for ; Mon, 22 Mar 1999 11:12:25 -0800 (PST) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.9.1/8.7.3) id MAA26990; Mon, 22 Mar 1999 12:02:58 -0700 (MST) Date: Mon, 22 Mar 1999 12:02:58 -0700 (MST) From: "Justin T. Gibbs" Message-Id: <199903221902.MAA26990@narnia.plutotech.com> To: Charles Owens Cc: scsi@FreeBSD.org Subject: Re: ch(4) driver is noisy X-Newsgroups: pluto.freebsd.scsi In-Reply-To: <36F684F6.FF645E3B@enc.edu> User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/4.0-CURRENT (i386)) Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article <36F684F6.FF645E3B@enc.edu> you wrote: > Every time I use the chio command to control my tape library > (MediaLogic) I get a kernal message or the sort > > Mar 22 12:29:42 r2s3 /kernel: (ch0:ahc0:0:5:0): warning, READ ELEMENT STATUS avail != count Hmm. This will take a little more investigation on my part to see how the code is supposed to work. It seems that chio is not requesting the same number of elements to be reported as known to your changer device. Can you apply this patch which will instrument the code and help me figure out what is going on. -- Justin ==== //depot/cam/sys/cam/scsi/scsi_ch.c#18 - /a/perforce/src/sys/cam/scsi/scsi_ch.c ==== *** /tmp/tmp.26982.0 Mon Mar 22 12:02:10 1999 --- /a/perforce/src/sys/cam/scsi/scsi_ch.c Mon Mar 22 12:02:02 1999 *************** *** 1189,1195 **** if (avail != cesr->cesr_element_count) { xpt_print_path(periph->path); ! printf("warning, READ ELEMENT STATUS avail != count\n"); } user_data = (struct changer_element_status *) --- 1189,1196 ---- if (avail != cesr->cesr_element_count) { xpt_print_path(periph->path); ! printf("warning, READ ELEMENT STATUS avail(%d) != count(%d)\n", ! avail, cesr->cesr_element_count); } user_data = (struct changer_element_status *) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message