linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: md@Linux.IT (Marco d'Itri)
To: linux-hotplug@vger.kernel.org
Subject: return value of inotify_add_watch()
Date: Sun, 30 Aug 2009 02:36:36 +0000	[thread overview]
Message-ID: <20090830023636.GA12825@bongo.bofh.it> (raw)

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

inotify_add_watch may fail in udev_watch_begin, and then a link with
name -1 is created.
I do not know why, but it happened once on my system:

lrwxrwxrwx 1 root root 27 Aug  4 11:27 -1 -> /devices/virtual/block/ram8

Then udev would log an error every time it was restarted:

Aug 30 04:17:20 bongo udevd[12451]: unable to move watches dir '/dev/.udev/watch', old watches will not be restored: Directory not empty

Maybe the content of the .old directory should also be deleted.

-- 
ciao,
Marco

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

             reply	other threads:[~2009-08-30  2:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-30  2:36 Marco d'Itri [this message]
2009-08-30 18:44 ` return value of inotify_add_watch() 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=20090830023636.GA12825@bongo.bofh.it \
    --to=md@linux.it \
    --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).