You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Boris Petrov (JIRA)" <ji...@apache.org> on 2018/02/28 10:33:00 UTC

[jira] [Comment Edited] (VFS-654) File system events API

    [ https://issues.apache.org/jira/browse/VFS-654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380108#comment-16380108 ] 

Boris Petrov edited comment on VFS-654 at 2/28/18 10:32 AM:
------------------------------------------------------------

Thank you for the quick response. I spent a significant amount of time researching this. [Samba 3 has support for notifications since version 3.0.25|https://wiki.samba.org/index.php/Samba_3.0_Features_added/changed]. Of course, local file systems have the *inotify* functionality (that's on Linux, I'm pretty sure there is something on Windows). Maybe these are the only two available.

Samba 3 support is along the way in  [smbj|https://github.com/hierynomus/smbj] and there is a [pull request|https://github.com/apache/commons-vfs/pull/26] for VFS for that library (which I hope you'll merge soon). I guess they will add notifications support once *smbj* has them and you expose some API in VFS.

As for other file systems - I really don't know. NFS seems to have such support (at least I read that it can be used with *inotify* so there obviously is something. NFS is supported by [this library|https://github.com/danniss/common-vfs2-nfs]. WebDAV also seems to be able to trigger some kind of notifications but I am not sure. I'll have to research more. In any case - such an API by VFS is definitely a nice thing to have and then it's up to the driver to implement it if possible.


was (Author: boris-petrov):
Thank you for the quick response. I spent a significant amount of time researching this. [Samba 3 has support for notifications since version 3.0.25.|https://wiki.samba.org/index.php/Samba_3.0_Features_added/changed]. Of course, local file systems have the *inotify* functionality (that's on Linux, I'm pretty sure there is something on Windows). Maybe these are the only two available.

Samba 3 support is along the way in  [smbj|https://github.com/hierynomus/smbj] and there is a [pull request|https://github.com/apache/commons-vfs/pull/26] for VFS for that library (which I hope you'll merge soon). I guess they will add notifications support once *smbj* has them and you expose some API in VFS.

As for other file systems - I really don't know. NFS seems to have such support (at least I read that it can be used with *inotify* so there obviously is something. NFS is supported by [this library|https://github.com/danniss/common-vfs2-nfs]. WebDAV also seems to be able to trigger some kind of notifications but I am not sure. I'll have to research more. In any case - such an API by VFS is definitely a nice thing to have and then it's up to the driver to implement it if possible.

> File system events API
> ----------------------
>
>                 Key: VFS-654
>                 URL: https://issues.apache.org/jira/browse/VFS-654
>             Project: Commons VFS
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: Boris Petrov
>            Priority: Major
>
> Currently the DefaultFileMonitor walks the whole file system and notifies when something changes. For large file systems and (near) real-time requirements this is _extremely_ inefficient. Some file systems have an events API which could be exposed (like *inotify*). Has any work towards that ever been done?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)