From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Thu, 04 Mar 2004 22:51:17 +0000 Subject: Re: %c option does not handle LF as a seperator Message-Id: <20040304145117.A29031@beaverton.ibm.com> List-Id: References: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com> In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Mar 04, 2004 at 01:05:27PM +0100, Hannes Reinecke wrote: > Patrick Mansfield wrote: > > On Tue, Mar 02, 2004 at 04:42:43PM -0800, Greg KH wrote: > > > >>On Tue, Mar 02, 2004 at 04:36:57PM -0800, Sabharwal, Atul wrote: > >>>> > >>>>BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="SSEAGATE ST318436LW > >>>>3BM07NKA000070456Z6B", > >>>> NAME="disk-sda-%c{3}" > >>>> > > I haven't ever seen a LF in the SCSI vendor, model, or page 0x80. I am not > > sure if it is allowed by the standards. > > > It's not. At least not for page 0x80: > > ASCII data fields shall contain only ASCII graphic codes (i.e., code > values 20h through 7Eh) (from SPC-3). > > But actually it's not page 0x80 which is the culprit (0x80 returns only > the serial number, which seems to be ok), but rather the model name > (from INQUIRY or page 0x83). > > What does the device say at initialisation? > There should be boot messages from the SCSI layer; if something's dodgy > with the data it should show up there, too. > > Care to send me the output of dmesg? In working to debug the problem, I got offlist email from Atul (using od, so the mind numbing line wrapping was not an issue) showing no linefeeds or such in the model, vendor, or scsi_id output. -- Patrick Mansfield ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel