From owner-freebsd-stable Fri Sep 15 19:26: 0 2000 Delivered-To: freebsd-stable@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 80CB637B423 for ; Fri, 15 Sep 2000 19:25:57 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id UAA91948; Fri, 15 Sep 2000 20:25:46 -0600 (MDT) (envelope-from ken) Date: Fri, 15 Sep 2000 20:25:46 -0600 From: "Kenneth D. Merry" To: Cy Schubert - ITSD Open Systems Group Cc: Jean-Francois Dockes , freebsd-stable@FreeBSD.ORG Subject: Re: SCSI retries without errors in /var/log/messages? Message-ID: <20000915202546.A91922@panzer.kdm.org> References: <20000915002135.A83469@panzer.kdm.org> <200009151333.e8FDXTs23908@cwsys.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200009151333.e8FDXTs23908@cwsys.cwsent.com>; from Cy.Schubert@uumail.gov.bc.ca on Fri, Sep 15, 2000 at 06:32:45AM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 15, 2000 at 06:32:45 -0700, Cy Schubert - ITSD Open Systems Group wrote: > In message <20000915002135.A83469@panzer.kdm.org>, "Kenneth D. Merry" > writes: > > In any case, if you want to see error messages, even for retried commands, > > boot with -v and comment out the following print_sense line in > > scsi_interpret_sense() in sys/cam/scsi/scsi_sa.c: > > > > default: > > /* decrement the number of retries */ > > retry = ccb->ccb_h.retry_count > 0; > > if (retry) { > > ccb->ccb_h.retry_count--; > > error = ERESTART; > > print_sense = FALSE; > > } else > > error = EIO; > > break; > > } > > Would it be possible to implement this using a sysctl? Yes. If this gets done, it would probably be best to do it as a kernel option combined with a sysctl variable. The sysctl variable would default to off normally, but default to on with the kernel option. The reason you would want that is so you could get the additional error output on boot, before setting a sysctl variable is possible. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message