From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Subject: Re: [PATCH/RFT] mode sense madness always use page 8 Date: Fri, 31 Oct 2003 10:16:46 -0800 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20031031101645.A14729@beaverton.ibm.com> References: <1067531731.4250.11.camel@pathost1.iomegacorp.com> <20031030091808.A6781@beaverton.ibm.com> <1067535485.6411.42.camel@pathost1.iomegacorp.com> <20031030100501.A7250@beaverton.ibm.com> <1067541899.1141.4.camel@ronald.kuetemeier.com> <20031030134850.A9076@beaverton.ibm.com> <1067551081.1138.7.camel@ronald.kuetemeier.com> <1067558384.14409.50.camel@patrh9> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from e34.co.us.ibm.com ([32.97.110.132]:43402 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S263485AbTJaSRu (ORCPT ); Fri, 31 Oct 2003 13:17:50 -0500 Content-Disposition: inline In-Reply-To: <1067558384.14409.50.camel@patrh9>; from p.lavarre@ieee.org on Thu, Oct 30, 2003 at 04:59:45PM -0700 List-Id: linux-scsi@vger.kernel.org To: Pat LaVarre Cc: ronald@kuetemeier.com, stern@rowland.harvard.edu, linux-scsi@vger.kernel.org, usb-storage@one-eyed-alien.net, james.bottomley@steeleye.com On Thu, Oct 30, 2003 at 04:59:45PM -0700, Pat LaVarre wrote: > Can we cycle more quickly thru compile-test-edit up in user land, rather > than patching the kernel? Good idea. > sudo ./plscsi /dev/sg1 -v -i x1C -x "5A 00 08:00:00:00 00 00:1C 00" > sudo ./plscsi /dev/sg1 -v -i 4 -x "5A 00 3F:00:00:00 00 00:04 00" > sudo ./plscsi /dev/sg1 -v -i 4 -x "5A 00 00:00:00:00 00 00:04 00" > sudo ./plscsi /dev/sg1 -v -i xFF -x "5A 00 3F:00:00:00 00 00:FF 00" Nice. Does sg_utils have an equivalent tool? You can use /dev/sdN with 2.6. > Also personally I find the source for that plscsi app impenetrably awful > to read. Maybe you can rewrite it in c and get it into sg_utils. -- Patrick Mansfield