On Sat, Dec 19, 2009 at 4:47 AM, Albert Lee <tr...@opensolaris.org> wrote:

> On Sat, 19 Dec 2009 00:38:23 +0100, Vincent Torri
> <vincent.to...@gmail.com>
> wrote:
> > On Mon, Aug 24, 2009 at 4:54 PM, Vincent Torri
> > <vincent.to...@gmail.com>wrote:
> >
> >>
> >>
> >> On Mon, Aug 24, 2009 at 3:23 PM, Darren J Moffat
> >> <darr...@opensolaris.org>wrote:
> >>
> >>> Vincent Torri wrote:
> >>>
> >>>> Hey,
> >>>>
> >>>> I would like to know how I can notify the file system on OpenSolaris.
> >>>> The
> >>>> low level API on linux is Inotify (it's a kernel module), and on
> >>>> Windows, it
> >>>> is ReadDirectoryChangeW||. Which one is it with OpenSolaris ?
> >>>>
> >>>
> >>> You need to use the port event system.
> >>>
> >>> See port_create(3C), port_associate(3C)
> >>>
> >>> [snip]
> >>
> >> thanks to both of you, that's exactly what I want
> >>
> >> actually, i am now trying to implement what i want,  and it seems that
> > there is no way to know if a file has been created.
> >
> > from here: http://blogs.sun.com/praks/entry/file_events_notification
> there
> > is no 'created' event to watch. Am I  wrong ?
> >
>
> You'll have to rewinddir() and readdir() on a FILE_MODIFIED event. This
> does present a scalability problem for large directories.
>

indeed, it does. We already have a file monitoring based on listing files,
which works well. I think i'll use it instead of using FEN.


>
> http://opensolaris.org/jive/thread.jspa?threadID=18695&tstart=465 mentions
> that FILE_CREATE and FILE_DELETE for directories were not implemented
> because it would require queuing of multiple events in the kernel (the
> other events coalesce so they don't have this issue).
>
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to