From: Matthias Schwarzott Date: Fri, 27 Apr 2007 13:29:13 +0000 Subject: Re: Proble, with new ata compatibility links for libata devices Message-Id: <200704271529.13070.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_pqfMGEouH6q9B3k" List-Id: References: <200704271405.01258.zzam@gentoo.org> In-Reply-To: <200704271405.01258.zzam@gentoo.org> To: linux-hotplug@vger.kernel.org --Boundary-00=_pqfMGEouH6q9B3k Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Freitag, 27. April 2007, Matthias Schwarzott wrote: > Hi! > > Since the commit of the ata compatibility links, I get this error message > at every system-start: > ata_id main: HDIO_GET_IDENTITY failed for '/dev/.tmp-8-0' > > Looking up the device, it is /dev/sda. > It is this rule: > > KERNEL=="sd*[!0-9]|sr*", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", > ENV{ID_ATA_COMPAT}="$result" > > Is it really intended to call ata_id on libata devices? > Or is that a kernel error (using version 2.6.20-gentoo). > > Or is this just a missing patch, only applied to suse kernels? > To answer to me: The patch seems to be included in Kernel 2.6.21. Attached patch just makes ata_id ignore the error: Unsupported ioctl (errno==ENOTTY). Matthias -- Matthias Schwarzott (zzam) --Boundary-00=_pqfMGEouH6q9B3k Content-Type: text/x-diff; charset="iso-8859-1"; name="udev-ata_id-ignore-old-libata.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-ata_id-ignore-old-libata.diff" diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index aedebff..56e4ddc 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -120,7 +120,9 @@ int main(int argc, char *argv[]) } if (ioctl(fd, HDIO_GET_IDENTITY, &id)) { - err("HDIO_GET_IDENTITY failed for '%s'", node); + // older libata (kernel < 2.6.21) did not implement that ioctl + if (errno!=ENOTTY) + err("HDIO_GET_IDENTITY failed for '%s'", node); rc = 3; goto close; } --Boundary-00=_pqfMGEouH6q9B3k Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --Boundary-00=_pqfMGEouH6q9B3k Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Boundary-00=_pqfMGEouH6q9B3k--