From owner-freebsd-usb@FreeBSD.ORG Wed Jan 15 03:33:41 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3BD34D2 for ; Wed, 15 Jan 2014 03:33:41 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B69AC1FA6 for ; Wed, 15 Jan 2014 03:33:41 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W3HEV-0006FG-Ag for freebsd-usb@freebsd.org; Tue, 14 Jan 2014 19:33:35 -0800 Date: Tue, 14 Jan 2014 19:33:35 -0800 (PST) From: "aseem.jolly" To: freebsd-usb@freebsd.org Message-ID: <1389756815271-5876552.post@n5.nabble.com> Subject: SCSI Error while performing synchronize cache 10 request USB/umass MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2014 03:33:41 -0000 Saw a following error message on the console. Believe that synchronize cache 10 request returned 'check condition' and we sent a SCSI sense request which returned Error code '0x4b' (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): SCSI sense: Error code 0x4b >From the SCSI sense error code, I couldn't translate anything back to the actual error(meaning of the error). I wanted to get some more information out of the system that I had but system got rebooted and I couldn't reproduce the behavior again. Don't you think that In 'scsi_sense_sbuf' function, We also need to print the SCSI sense key, ASC, and ASCQ to get some more information about the error or just the error code is enough. sense_key = sense->flags & SSD_KEY; asc = (sense->extra_len >= 5) ? sense->add_sense_code : 0; ascq = (sense->extra_len >= 6) ? sense->add_sense_code_qual : 0; -- View this message in context: http://freebsd.1045724.n5.nabble.com/SCSI-Error-while-performing-synchronize-cache-10-request-USB-umass-tp5876552.html Sent from the freebsd-usb mailing list archive at Nabble.com.