linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Proble, with new ata compatibility links for libata devices
@ 2007-04-27 12:05 Matthias Schwarzott
  2007-04-27 13:29 ` Matthias Schwarzott
  2007-04-28 22:16 ` Kay Sievers
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Schwarzott @ 2007-04-27 12:05 UTC (permalink / raw)
  To: linux-hotplug

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?

Matthias
-- 
Matthias Schwarzott (zzam)

-------------------------------------------------------------------------
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/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Proble, with new ata compatibility links for libata devices
  2007-04-27 12:05 Proble, with new ata compatibility links for libata devices Matthias Schwarzott
@ 2007-04-27 13:29 ` Matthias Schwarzott
  2007-04-28 22:16 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Matthias Schwarzott @ 2007-04-27 13:29 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

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)

[-- Attachment #2: udev-ata_id-ignore-old-libata.diff --]
[-- Type: text/x-diff, Size: 472 bytes --]

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;
 	}

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 226 bytes --]

_______________________________________________
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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Proble, with new ata compatibility links for libata devices
  2007-04-27 12:05 Proble, with new ata compatibility links for libata devices Matthias Schwarzott
  2007-04-27 13:29 ` Matthias Schwarzott
@ 2007-04-28 22:16 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2007-04-28 22:16 UTC (permalink / raw)
  To: linux-hotplug

On 4/27/07, Matthias Schwarzott <zzam@gentoo.org> wrote:
> On Freitag, 27. April 2007, Matthias Schwarzott wrote:
> > 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).

Nice, I've applied that with a message at the "info" level, if the
ioctl is not supported. So no error should be logged in the default
setup.

Thanks,
Kay

-------------------------------------------------------------------------
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/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-28 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27 12:05 Proble, with new ata compatibility links for libata devices Matthias Schwarzott
2007-04-27 13:29 ` Matthias Schwarzott
2007-04-28 22:16 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).