Re: [patch] inotify.

Robert Love
2005-06-17T18:54:23Z

On Fri, 2005-06-17 at 19:45 +0100, Christoph Hellwig wrote:

> inotify does indeed use file->private data to retrieve the inotify_dev
> structure. Of which by design exists a single instance only. So yes,
> you do not use the file descriptor at all.

Sorry, I am not following how we "do not use the file descriptor at
all". It is given to the ioctl and, as you said, used to find the
inotify_dev. The file descriptor maps to the device, and vice versa.

You _can_ have multiple open devices per process.

> And a default limit matters exactly how?

Because we want people to actually use inotify, to make the desktop
better, and in the real world "become root and bump the fd limit" is not
always feasible. The fd limit might be low for other reasons.

> Thanks a lot, I'm enjoying life a lot when I don't happen to have to deal
> with ignorant people :)

Just because we disagree does not make either of us ignorant. Indeed,
even if one of us were wrong, we need not be ignorant--wrong word.
Neither of us is untaught on or unacquainted with the kernel. We are
just viewing things differently.

Robert Love