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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]