From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 29 Aug 2007 12:18:51 +0000 Subject: Re: udev naming for PATA drives Message-Id: <1188389931.3672.34.camel@lov.localdomain> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2007-08-29 at 14:04 +0200, Jan Engelhardt wrote: > On Aug 29 2007 07:05, Kay Sievers wrote: > > > >> And I also wonder why the ID_MODEL gets truncated by one > >> character when copies to ID_SERIAL_SHORT. (The 'A' of MK2003GA is missing.) > > > >They are unfortunately truncated to 15 chars, which should be 16, yes. > > > >And if you read the native ATA string it has an additional 'H' too, > >which does not survive the SCSI layer. :) > > Can't the SCSI layer be enhanced? If the (real SCSI) hardware still only does > 16, well, let it be. Standard INQUIRY Data Format: ... |-----+-----------------------------------------------------------------------| | 8 | (MSB) | |- - -+--- Vendor Identification ---| | 15 | (LSB) | |-----+-----------------------------------------------------------------------| | 16 | (MSB) | |- - -+--- Product Identification ---| | 31 | (LSB) | |-----+-----------------------------------------------------------------------| ... > Especially bad is that vendor is always "ATA" with libata > and the real vendor + model name get squeezed into model name or so. If vendor is ATA, you can use the native ATA commands (hdparm, ata_id) and send ATA inquiries over the SCSI device. I think its fine, its just ATA tunneled through SCSI. Kay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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