[Qt-interest] QFileSystemWatcher on an NFS share

Tiemen Schut tschut at gmail.com
Thu Feb 18 11:41:00 CET 2010


Dear list,

Currently, I'm using QFileSystemWatcher to watch files for changes, as it is
intended to. This is all well for local files, but I don't get any
notifications for files on an NFS mount.

This makes sense, as the default implementation on Linux uses inotify if
available, and inotify doesn't support NFS shares. I've looked in the
sources for qfilesystemwatcher, and saw that there *is* support for a
polling engine (instead of inotify). However, there is no public interface
to force the use of the polling engine (or any other engine for that
matter).

I've thought about subclassing QFileSystemWatcher to force it to use the
polling engine. Unfortunately, that will not work because of pimpl. Maybe
there is a way to get this to work, but if there is, I wouldn't know how.

Any suggestions on how to get QFileSystemWatcher to be able to watch files
on an NFS share would be welcome!

Thanks,

Tiemen

P.S. This is with Qt 4.6.0 on linux.


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100218/bd902375/attachment.html 


More information about the Qt-interest-old mailing list