From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Proble, with new ata compatibility links for libata devices
Date: Fri, 27 Apr 2007 13:29:13 +0000 [thread overview]
Message-ID: <200704271529.13070.zzam@gentoo.org> (raw)
In-Reply-To: <200704271405.01258.zzam@gentoo.org>
[-- 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
next prev parent reply other threads:[~2007-04-27 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 12:05 Proble, with new ata compatibility links for libata devices Matthias Schwarzott
2007-04-27 13:29 ` Matthias Schwarzott [this message]
2007-04-28 22:16 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704271529.13070.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).