Bug 59835 - Ubuntu 16.04 LTS: FileSystemWatcher does not catch file changes in network-mounted directories
Summary: Ubuntu 16.04 LTS: FileSystemWatcher does not catch file changes in network-mo...
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: 4.2.1 (C6SR0)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-09-28 22:50 UTC by Chris Cheng
Modified: 2017-09-28 22:53 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 59835 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Chris Cheng 2017-09-28 22:50:27 UTC
This has been tested on two machines running Ubuntu 16.04 LTS, using the "Mono JIT compiler version 4.2.1 (Debian" (per `mono --version`) - the latest version available via `apt install mono-runtime`.

We're depending upon the FileSystemWatcher to catch files being dropped into a specific directory, however FileSystemWatcher is not firing either the Created or Changed events when files are added to the directory being watched.

After a bit of testing, we have found that the FSW will pick up the files, so long as the files are on a storage medium local to the machine running the application; if there's a network connection involved (ie the directory in question is on an NFS mount or a CIFS mount) then nothing is fired at all.

We're able to work around this utilizing a repeated polling of the directory, however I still felt the bug needed to be reported.  Seeing as there appear to be other versions in the version selection newer than ours, there might be a chance this issue is already fixed, it's just not available on Ubuntu 16.04.