lkml.org 
[lkml]   [2005]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: inotify 0.23 errno 28 (ENOSPC)
From
Date
On Tue, 2005-05-24 at 09:33 -0700, Bryan Wilkerson wrote:

> I read an earlier thread where you said that it was
> possible to manually walk a tree and add all
> directories to an inotify watch descriptor. I wrote
> some code to do this and the ioctl call fails on my
> machine after adding 9,977 directories with ENOSPC.
>
> I've attached a small repro case. Just point it at
> the base of a large dir tree (e.g. inotify-r ~) to
> use.
>
> My kernel is 2.6.12-rc3 with the inotify 0.23 patch.
> Let me know if you need more information.

This is intended. There is a per-user limit on the number of watches.
By default, that limit is 8192.

You can view and edit the number via
/sys/class/misc/inotify/max_user_watches

Best,

Robert Love


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-24 18:48    [W:0.034 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site