linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* inotify_init failed
@ 2008-11-11 15:35 Gabor Z. Papp
  2008-11-11 15:45 ` Kay Sievers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Gabor Z. Papp @ 2008-11-11 15:35 UTC (permalink / raw)
  To: linux-hotplug

Hello,

with udev 132 I'm getting the error at line 869 in udevd.c:

                err(udev, "inotify_init failed: %m\n");

%m is "file or directory not found"

What for looking inotify_init?

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
@ 2008-11-11 15:45 ` Kay Sievers
  2008-11-12 14:24 ` Gabor Z. Papp
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2008-11-11 15:45 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Nov 11, 2008 at 16:35, Gabor Z. Papp <gzp@papp.hu> wrote:

> with udev 132 I'm getting the error at line 869 in udevd.c:
>
>                err(udev, "inotify_init failed: %m\n");
>
> %m is "file or directory not found"
>
> What for looking inotify_init?

What kernel is it?

What architecture is it?

If you do:
  killall udevd
  strace /sbin/udevd
  /sbin/udevd --daemon

What does the strace print while udevd is the inotify calls? It looks
like this here:
  ...
  inotify_init()                          = 3
  inotify_add_watch(3, "/lib/udev/rules.d", ...) = 1
  inotify_add_watch(3, "/etc/udev/rules.d", ...) = 2
  inotify_add_watch(3, "/dev/.udev/rules.d", ...) = 3
  ...

Kay

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
  2008-11-11 15:45 ` Kay Sievers
@ 2008-11-12 14:24 ` Gabor Z. Papp
  2008-11-13  0:46 ` Kay Sievers
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gabor Z. Papp @ 2008-11-12 14:24 UTC (permalink / raw)
  To: linux-hotplug

* "Kay Sievers" <kay.sievers@vrfy.org>:

| If you do:
|   killall udevd
|   strace /sbin/udevd
|   /sbin/udevd --daemon

| What does the strace print while udevd is the inotify calls? It looks
| like this here:
|   ...
|   inotify_init()                          = 3
|   inotify_add_watch(3, "/lib/udev/rules.d", ...) = 1
|   inotify_add_watch(3, "/etc/udev/rules.d", ...) = 2
|   inotify_add_watch(3, "/dev/.udev/rules.d", ...) = 3
|   ...

[...]
unlink("/dev/.udev/uevent_seqnum")      = -1 ENOENT (No such file or directory)
open("/dev/.udev/queue", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/sys/kernel/uevent_seqnum", O_RDONLY|O_LARGEFILE) = 8
read(8, "1791\n", 31)                   = 5
close(8)                                = 0
stat64("/dev/.udev", {st_mode=S_IFDIR|0755, st_size\x100, ...}) = 0
open("/dev/.udev/uevent_seqnum", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 8
write(8, "1791\n", 5)                   = 5
close(8)                                = 0
fork()                                  = 2025
close(6)                                = 0
close(7)                                = 0
close(4)                                = 0
close(5)                                = 0
unlink("/dev/.udev/uevent_seqnum")      = 0
open("/dev/.udev/queue", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
[2025] main: inotify_init failed: No such file or directory
exit_group(0)                           = ?
...

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
  2008-11-11 15:45 ` Kay Sievers
  2008-11-12 14:24 ` Gabor Z. Papp
@ 2008-11-13  0:46 ` Kay Sievers
  2008-11-13 14:03 ` Gabor Z. Papp
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2008-11-13  0:46 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Nov 12, 2008 at 15:24, Gabor Z. Papp <gzp@papp.hu> wrote:
> * "Kay Sievers" <kay.sievers@vrfy.org>:
>
> | If you do:
> |   killall udevd
> |   strace /sbin/udevd
> |   /sbin/udevd --daemon
>
> | What does the strace print while udevd is the inotify calls? It looks
> | like this here:
> |   ...
> |   inotify_init()                          = 3
> |   inotify_add_watch(3, "/lib/udev/rules.d", ...) = 1
> |   inotify_add_watch(3, "/etc/udev/rules.d", ...) = 2
> |   inotify_add_watch(3, "/dev/.udev/rules.d", ...) = 3
> |   ...
>
> [...]
> unlink("/dev/.udev/uevent_seqnum")      = -1 ENOENT (No such file or directory)
> open("/dev/.udev/queue", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
> open("/sys/kernel/uevent_seqnum", O_RDONLY|O_LARGEFILE) = 8
> read(8, "1791\n", 31)                   = 5
> close(8)                                = 0
> stat64("/dev/.udev", {st_mode=S_IFDIR|0755, st_size\x100, ...}) = 0
> open("/dev/.udev/uevent_seqnum", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 8
> write(8, "1791\n", 5)                   = 5
> close(8)                                = 0
> fork()                                  = 2025
> close(6)                                = 0
> close(7)                                = 0
> close(4)                                = 0
> close(5)                                = 0
> unlink("/dev/.udev/uevent_seqnum")      = 0
> open("/dev/.udev/queue", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
> [2025] main: inotify_init failed: No such file or directory
> exit_group(0)                           = ?

Ah, seems inotify headers from glibc have been not available during
compilation of udev, and inotify got disabled. You can safely ignore
the misleading error message, I fixed the message for the next
version.

Thanks,
Kay

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
                   ` (2 preceding siblings ...)
  2008-11-13  0:46 ` Kay Sievers
@ 2008-11-13 14:03 ` Gabor Z. Papp
  2008-11-13 14:17 ` Kay Sievers
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Gabor Z. Papp @ 2008-11-13 14:03 UTC (permalink / raw)
  To: linux-hotplug

* "Kay Sievers" <kay.sievers@vrfy.org>:

| Ah, seems inotify headers from glibc have been not available during
| compilation of udev, and inotify got disabled. You can safely ignore
| the misleading error message, I fixed the message for the next
| version.

GNU C Library stable release version 2.3.6, by Roland McGrath et al.

Which is the minimum required glibc release for compiling udev?

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
                   ` (3 preceding siblings ...)
  2008-11-13 14:03 ` Gabor Z. Papp
@ 2008-11-13 14:17 ` Kay Sievers
  2008-11-13 14:20 ` Gabor Z. Papp
  2008-11-13 14:22 ` Kay Sievers
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2008-11-13 14:17 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Nov 13, 2008 at 15:03, Gabor Z. Papp <gzp@papp.hu> wrote:
> * "Kay Sievers" <kay.sievers@vrfy.org>:
>
> | Ah, seems inotify headers from glibc have been not available during
> | compilation of udev, and inotify got disabled. You can safely ignore
> | the misleading error message, I fixed the message for the next
> | version.
>
> GNU C Library stable release version 2.3.6, by Roland McGrath et al.
>
> Which is the minimum required glibc release for compiling udev?

There is no specific version required, configure checks if inotify is
supported and disables if not, that's all. Glibc 2.5 added them, if I
remember correctly, not sure, I have only glibc 2.8 installations
here.

Kay

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
                   ` (4 preceding siblings ...)
  2008-11-13 14:17 ` Kay Sievers
@ 2008-11-13 14:20 ` Gabor Z. Papp
  2008-11-13 14:22 ` Kay Sievers
  6 siblings, 0 replies; 8+ messages in thread
From: Gabor Z. Papp @ 2008-11-13 14:20 UTC (permalink / raw)
  To: linux-hotplug

* "Kay Sievers" <kay.sievers@vrfy.org>:

| > Which is the minimum required glibc release for compiling udev?

| There is no specific version required, configure checks if inotify is
| supported and disables if not, that's all. Glibc 2.5 added them, if I
| remember correctly, not sure, I have only glibc 2.8 installations
| here.

Should not this be printed somewhere at the end of configure?
Thought inotify is an important feature in udev.

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

* Re: inotify_init failed
  2008-11-11 15:35 inotify_init failed Gabor Z. Papp
                   ` (5 preceding siblings ...)
  2008-11-13 14:20 ` Gabor Z. Papp
@ 2008-11-13 14:22 ` Kay Sievers
  6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2008-11-13 14:22 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Nov 13, 2008 at 15:20, Gabor Z. Papp <gzp@papp.hu> wrote:
> * "Kay Sievers" <kay.sievers@vrfy.org>:
>
> | > Which is the minimum required glibc release for compiling udev?
>
> | There is no specific version required, configure checks if inotify is
> | supported and disables if not, that's all. Glibc 2.5 added them, if I
> | remember correctly, not sure, I have only glibc 2.8 installations
> | here.
>
> Should not this be printed somewhere at the end of configure?
> Thought inotify is an important feature in udev.

It does here:
  ...
  checking for inotify_init2 in -lc... no
  configure: WARNING: inotify support disabled
  ...

Kay

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

end of thread, other threads:[~2008-11-13 14:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 15:35 inotify_init failed Gabor Z. Papp
2008-11-11 15:45 ` Kay Sievers
2008-11-12 14:24 ` Gabor Z. Papp
2008-11-13  0:46 ` Kay Sievers
2008-11-13 14:03 ` Gabor Z. Papp
2008-11-13 14:17 ` Kay Sievers
2008-11-13 14:20 ` Gabor Z. Papp
2008-11-13 14:22 ` 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).