From owner-freebsd-usb@FreeBSD.ORG Mon Sep 14 04:44:55 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 327D5106566B; Mon, 14 Sep 2009 04:44:55 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (pool-173-50-227-32.ptldor.fios.verizon.net [173.50.227.32]) by mx1.freebsd.org (Postfix) with ESMTP id F123A8FC08; Mon, 14 Sep 2009 04:44:53 +0000 (UTC) Received: by sopwith.solgatos.com (Postfix, from userid 66) id 426F2B64F; Sun, 13 Sep 2009 21:32:52 -0700 (PDT) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id XAA21847; Sun, 13 Sep 2009 23:45:13 GMT Message-Id: <200909132345.XAA21847@sopwith.solgatos.com> To: gavin@FreeBSD.org In-reply-to: Your message of "Mon, 31 Aug 2009 12:14:11 GMT." <200908311214.n7VCEBJ2046645@freefall.freebsd.org> Date: Sun, 13 Sep 2009 16:45:13 PDT From: Dieter Cc: bug-followup@freebsd.org, freebsd-usb@FreeBSD.org Subject: Re: usb/113977: [request] Need a way to set mode of USB disk's write cache X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 04:44:55 -0000 In message <200908311214.n7VCEBJ2046645@freefall.freebsd.org>, gavin@FreeBSD.org writes: > Synopsis: [request] Need a way to set mode of USB disk's write cache > > State-Changed-From-To: suspended->feedback > State-Changed-By: gavin > State-Changed-When: Mon Aug 31 12:07:21 UTC 2009 > State-Changed-Why: > To submitter: Sorry that this PR has not been looked at since > submission. If your external device supports changing write > cache, I think it should be visible with "camcontrol modepage da0 -m 8". > If that doesn't work, I don't know if there is any way you can > achieve what you want to do. > > > Responsible-Changed-From-To: freebsd-usb->gavin > Responsible-Changed-By: gavin > Responsible-Changed-When: Mon Aug 31 12:07:21 UTC 2009 > Responsible-Changed-Why: > Track > > http://www.freebsd.org/cgi/query-pr.cgi?pr=113977 With: umass0: on uhub4 # camcontrol modepage da0 -l 0x2f # camcontrol modepage da0 -m 8 IC: 0 ABPF: 0 CAP: 0 DISC: 0 SIZE: 0 WCE: 0 MF: 0 RCD: 0 Demand Retention Priority: 0 Write Retention Priority: 0 Disable Pre-fetch Transfer Length: 0 Minimum Pre-fetch: 0 Maximum Pre-fetch: 0 Maximum Pre-fetch Ceiling: 0 # camcontrol modepage da0 -m 0x8 -e camcontrol: no editable entries With: umass0: on uhub1 # camcontrol modepage da0 -l gives no response (just a new shell prompt) # camcontrol modepage da0 -m 0x8 camcontrol: error sending mode sense command I tried several other values for -m with the same results.