From owner-freebsd-scsi Tue Jan 14 12:17:37 2003 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9845937B405 for ; Tue, 14 Jan 2003 12:17:36 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id D0F4043F5B for ; Tue, 14 Jan 2003 12:17:31 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 39444 invoked by uid 1000); 14 Jan 2003 20:17:27 -0000 Date: Tue, 14 Jan 2003 12:17:27 -0800 (PST) From: Nate Lawson To: Joerg Wunsch Cc: freebsd-scsi@freebsd.org Subject: Re: quirk candidate: SEAGATE ST52160N In-Reply-To: <579060000.1042573021@aslan.btc.adaptec.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 14 Jan 2003, Justin T. Gibbs wrote: > What you should probably do is trace the sense buffer both before > and after the sense is retrieved. Perhaps fill the target sense > buffer with a known pattern, log the transfer residual, and see if > the number of bytes overwritten is as you would expect. i.e. memset(csio.sense_data.sense_buf, 0xa5, sizeof csio.sense_data); before sending the sync cache in camcontrol, then printf("resid %d, sense_resid %d\n", csio.resid, csio.sense_resid); afterwards. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message