[crac] RFR: Linux file system watcher support

joeylee duke at openjdk.org
Sun May 14 10:07:28 UTC 2023


inotify monitors changes on filesystem, this support automatic restore for LinuxFileWatcher.

FileWatcherAfterRestoreTest verifies watcher service works after restore.
FileWatcherTest verifies automatic closing inotiify fd

The watcher keys are still managed by user, so exception will be thrown if no watcher keys are leaked, as in FileWatcherWithOpenKeysTest

-------------

Commit messages:
 - Linux file system watcher support

Changes: https://git.openjdk.org/crac/pull/72/files
 Webrev: https://webrevs.openjdk.org/?repo=crac&pr=72&range=00
  Stats: 340 lines in 4 files changed: 309 ins; 25 del; 6 mod
  Patch: https://git.openjdk.org/crac/pull/72.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/72/head:pull/72

PR: https://git.openjdk.org/crac/pull/72


More information about the crac-dev mailing list