Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2000 20:25:46 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
Cc:        Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr>, freebsd-stable@FreeBSD.ORG
Subject:   Re: SCSI retries without errors in /var/log/messages?
Message-ID:  <20000915202546.A91922@panzer.kdm.org>
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
References:  <20000915002135.A83469@panzer.kdm.org> <200009151333.e8FDXTs23908@cwsys.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000915202546.A91922>