Skip to content

Research notes / File change detection

What inotify misses: mapped writes and collapsed change events

Published / Updated / Measured behavior and source review

A quiet notification queue does not establish that file contents are unchanged. In our Linux probe, a shared mapped write changed 32 bytes without an IN_MODIFY event, while 32 ordinary writes could collapse into one event. Closing an unchanged writable file still produced IN_CLOSE_WRITE.

On this page16 sections

The same data change can produce different event counts

We ran eight cases five times on each of two mounts, ext4 and tmpfs, on Linux 6.8.0-146-generic: 80 case executions on one host. Every repetition agreed with the table below. These are checks of controlled behavior, not a sample from which to estimate a backup failure rate.

Both mount types produced these counts. Each fresh file contained 4,096 bytes. The watch requested only IN_MODIFY and IN_CLOSE_WRITE.
CaseChanged bytesMODIFY before closeCLOSE_WRITE after close
One pwrite111
32 pwrites; drain at end3211
32 pwrites; drain each time32321
Shared mmap + flush3201
Private mmap + flush001
Open writable, no modification001
Watch grandparent directory100
Watch immediate directory111

The two 32-write cases performed the same one-byte overwrites at offsets 0 through 31. Only the queue-reading schedule changed. Reading after each completed call yielded 32 modification events; leaving the queue unread until the end yielded one. Event count therefore cannot serve as a write-operation counter.

The mapped cases stored the same 32 bytes and called Python's synchronous mapping flush. With a shared mapping, the complete file comparison found the edits. With a private mapping, the edits remained private and the file was unchanged. Neither generated a modification event in the observed pre-close phase. The mapping contract explains why the two modes have different effects.

A close event is a useful hint, not a content assertion

In every file-watch case, the original writable descriptor remained open while we checked the bytes and read the queue. We then closed it and read the queue again. A close-write event appeared after shared modification, after private modification and after doing nothing at all. No close-write events appeared in the earlier phase.

The upstream Linux v6.8 fsnotify_close() hook selects its close event using FMODE_WRITE. It does not first compare old and new contents. [2] That explains why the no-write control matters: the event's name is not a promise that bytes changed. Conversely, a long-lived mapped writer need not close promptly, so waiting for closure cannot provide a bounded change-detection delay.

The directory controls used root/child/payload, fully created before installing the watch. Watching root yielded neither selected event for a write to payload; watching child yielded both. This isolates watch coverage without relying on a race while creating directories.

Linux documents unread-event coalescing, nonrecursive directory watches and the omission of mapped modifications. It also documents queue overflow, identified by IN_Q_OVERFLOW, as a reason an application's cached view may need rebuilding. [1] We did not induce overflow: the probe rejects an overflow record rather than counting a partial stream as complete.

Two names can share one watch; two readers can share one queue

A second subscriber can change what the first observes. Within one inotify instance, two hard-link names for the same inode reuse the same watch descriptor. A successful registration is not necessarily a new subscription. [Watch identity]

Our separate ownership experiment ran eleven controls three times on each of ext4 and tmpfs: 66 case executions on one Linux 6.8.0-149-generic host. Each created fresh hard links, wrote one byte and checked all 4096 resulting bytes. All repetitions agreed. These are sequential API checks, not a backup failure rate or a multi-host sample.

Six selected controls, six executions each. A requests MODIFY; B adds CLOSE_WRITE and, for independent instances, MODIFY too. Duplicate is read before Original. None means no event in that phase, not unchanged bytes.
ControlReaderAfter setupAfter writeAfter close
Alias replaces maskANoneNoneCLOSE_WRITE
Alias adds maskANoneMODIFYCLOSE_WRITE
Remove shared watchAIGNOREDNoneNone
Add one-shot behaviorANoneMODIFY, IGNOREDNone
Read duplicate firstDuplicateNoneMODIFYNone
Read duplicate firstOriginalNoneNoneNone
Independent instancesANoneMODIFYNone
Independent instancesBNoneMODIFYCLOSE_WRITE

Replacing the alias mask removed MODIFY from the shared watch: the ordinary write changed bytes but no longer matched its selection. IN_MASK_ADD preserved both interests. It did not create a lifetime reference: inotify_rm_watch using the second returned descriptor removed the watch for both logical clients and queued IGNORED. [Removal]

Adding IN_ONESHOT with the union made the first MODIFY end the shared watch, before the writer closed. The pinned v6.8 handler destroys the one-shot mark after event handling. [One-shot source] A separate IN_MASK_CREATE control returned EEXIST without replacing the original interest; combining CREATE and ADD returned EINVAL. CREATE detects an existing watch, not a way to allocate an independent one.

dup shares an open file description. Reading the duplicate consumed the notification, leaving none for the original reader; closing the original first did not end the instance while its duplicate remained open. Independently initialized instances each received MODIFY in the control. [Duplication] [Initialization] The pinned reader removes events from its shared group queue. [Queue consumption]

Coverage is another boundary: writing through the outside hard link produced no MODIFY for the directory containing the other name, while a direct file watch received it. Writing through the inside name restored the directory event. Thus identical final bytes do not imply identical directory notifications. [API scope]

Engineering inference: shared watchers need managed subscriber lifetimes, compatible masks and flags, and deliberate fan-out from a queue reader. Mask union alone is insufficient. Separate instances isolate these interests but retain resource, coverage and overflow limits. This synthesis complements the mapped-write, scan and Watchman results below; it does not establish complete or consistent backup capture.

Download the method and commands, native probe, 66 full observations, generated summary, verifier, tests, source locators and hash manifest. No kernel vulnerability, remote filesystem, crash durability or named backup product was tested. The 20 ms queue-read wait belongs to this probe, not the earlier 50 ms experiment.

A delivered event can lead to the wrong file

The event arrived, but its name opened different bytes. In our native fsnotify v1.10.1 Linux test, hard links a and b initially contained OLD0. Both registrations succeeded in one Watcher; only the first name remained in WatchList. After renaming a separate NEW0 file over a, writing EDIT through b produced WRITE named a. Reading that event name returned NEW0 from the replacement inode.

Three namespace schedules, six executions each: three on ext4 and three on tmpfs, on one Linux host. Each writes EDIT through b before reading the delivered name.
Namespace actionDelivered eventRead through event nameSame inode as b?
Keep both namesWRITE aEDITYes
Unlink aWRITE aPath absentNo
Replace aWRITE aNEW0No

The library series is separate from the kernel controls above: 36 registration/lifetime schedules plus 18 namespace schedules on Linux 6.8.0-149-generic, using unmodified fsnotify v1.10.1. We recorded device/inode pairs, exact bytes and actual event-name reads. A marker event in the same stream confirmed progress after each operation. No writer ran during those reads; a short timeout was not treated as evidence of silence.

The preceding namespace change did produce CHMOD. This is not a wholly silent change. The old inode survived through b, while the retained event label a could disappear or refer to another inode. The pinned backend reuses the existing watch and constructs direct-file event names from its stored path. [Library source] The kernel's watch descriptor identifies an inode within its instance, not a permanently bound pathname. [Kernel contract]

Removing the retained registration and adding b restored intended reads in every recovery control. Independent Watcher instances also isolated removal in the separate lifetime controls. The public API already advises watching a parent directory when a file is atomically replaced. [API guidance] That does not cover every write through links outside the watched directory, as the preceding kernel control shows.

Engineering inference: verify event delivery, subscriber lifetime and lookup identity separately. A consumer must reconcile namespace changes instead of treating Event.Name as proof of the current object's identity. This finite, version-scoped counterexample is not a backup-product evaluation or a production failure-rate estimate; other fsnotify backends were not tested.

The reproduction package includes 36 original registration captures, 18 namespace captures, native Go probes, exact byte/inode verifiers, dependency pins, tests and a hash manifest. The displayed table is generated from those verified captures.

A parent watch does not make the event name an object identity

A directory event can name the old open file while that name now opens its replacement. Our raw-inotify controls wrote EDIT through the displaced descriptor, but a lookup of the delivered name read NEW0 from a different inode. The MOVED_TO namespace notification was present: this was not a wholly silent replacement.

We ran seven schedules three times on ext4 and tmpfs: 42 fixtures, each with a default directory observer and another requesting IN_EXCL_UNLINK, on one Linux 6.8.0-149-generic host. Markers in each stream established phase completion; a timeout was failure, not evidence that no event occurred.

MODIFY events for one controlled test write, six fixtures per row. Both observers retained namespace changes. The separate later positive-control write is excluded.
ScheduleDefaultEXCL_UNLINKCurrent name reads
Keep original name11EDIT
Remove name10Absent
Remove, then publish replacement10NEW0
Replace name, then write old file10NEW0
Replace; old file keeps another link10NEW0
Write old file, then replace name11NEW0
Replace name, then write new file11EDIT

The filter is not retroactive. In the write-before-replacement row, both queues kept MODIFY followed by MOVED_TO. By the time we drained them, the name reached the replacement. In contrast, writes through the removed entry after replacement were filtered, even when another hard link kept the old inode alive. Both observers still reported writes through the new pathname.

The API documents unlinked-child filtering. [API] Linux v6.8 checks the event path's d_unlinked predicate before dispatch; that predicate tests the directory entry, not zero inode links. [Dispatch] [Entry state] The open file's path supplies this entry. [File hook] Versioned upstream code explains the result; it is not byte-identical attestation of the distribution kernel.

A separate-run review replayed the original probe in 42 fresh fixtures and implemented five schedules independently in C: 20 fixtures across ext4/tmpfs and -O0/-O2. Keep those populations separate from the original 42. All used the same host/kernel, not an independent laboratory; paired streams and compiler modes are not independent hosts.

Engineering inference: reconcile namespace changes and verify the object actually read. A held descriptor stabilizes object identity, not its contents. ViewBox's frozen views address consistent capture at a different layer. [4, section 3.3] Neither a parent watch nor this filter supplies a snapshot, and these deliberately ordered controls do not measure backup failure rates.

Download the method and reproduction commands, 42 original fixtures, derived table, separate C controls and hash manifest. Raw buffers, byte and inode checks, source code, positive controls and tests are included.

What changes when the observer uses fanotify?

fanotify adds broad marks and permission interception. These are documented API capabilities, not measurements from our inotify probe.

  • Directory: FAN_EVENT_ON_CHILD covers immediate children, not descendants recursively.
  • Mount: FAN_MARK_MOUNT covers one mount, but rejects handle-based events such as FAN_CREATE.
  • Filesystem: FAN_MARK_FILESYSTEM covers one filesystem instance through its different mounts. Both broad mark types require CAP_SYS_ADMIN. [Marks]

Notification-only groups cannot request permission events. Unprivileged groups must identify objects with file handles, can mark only inodes and cannot request permission events; kernel configuration and filesystem support matter too. Even a privileged listener cannot combine FAN_REPORT_FID with FAN_CLASS_CONTENT or FAN_CLASS_PRE_CONTENT. File-handle reporting and permission interception are not interchangeable group modes. A deployment must choose compatible event masks, group flags and mark types. [Initialization]

Mapped stores do not provide FAN_MODIFY notifications. Since Linux 6.14, FAN_PRE_ACCESS can run before mmap; the pinned kernel hook makes this a pre-content permission check, not a record of later mapped writes. [mmap hook] [Event type] Remote network-filesystem events remain outside the reported stream, and queue overflow loses events. Closing all descriptors referring to the notification group allows outstanding permission requests. Closing only one duplicated descriptor does not release the group. Interception alone therefore does not establish a persistent fail-closed policy. [API limits]

Our engineering conclusion is to specify observation coverage separately from capture consistency. A broader mark can reduce directory-watch setup work; it cannot make later reads a point-in-time backup. The scan and reconciliation results below still need their own scope and continuity checks.

The indexing problem predates modern cloud backup

Buettcher and Clarke's 2006 Wumpus report describes how per-directory registration can race with newly created subtrees. It also asks for changed-byte ranges instead of a coarse file-change signal. Its experimental fschange interface was a research patch, not a current inotify feature. The report is valuable design history, not a reason to install that old patch. [3, pp. 31-33]

ViewBox, published at FAST 2014, addresses a different layer: detecting a changed file does not establish that its bytes are valid or that several files form a consistent recovery state. Its historical tests inject corruption and crash states; its design combines a checksumming ext4 variant with consistent views for synchronization. [4, sections 2-4]

Recovery has a selection cost. In ViewBox, selectively rolling back inconsistent files can preserve newer work but break causal dependencies. Whole-view rollback instead abandons later updates. This differs from checksum-verified block repair. The multi-client model has weaker guarantees, even with view-aware synchronization. [4, sections 3.3.2, 3.4 and 4.3]

Our probe does not rerun ViewBox or assess any current cloud client. The useful connection is architectural: discovery, integrity and consistent capture are separate obligations. Improving the notification consumer alone does not satisfy the other two.

An index version needs a defined source interval

Spyglass (FAST 2009) offers a contrasting collection design: its WAFL-based crawler compares two snapshots and revisits changed metadata blocks. The paper separates this snapshot-difference collection from partition versioning, which batches updates and can leave the searchable index behind the live filesystem. [Spyglass, sections 3.2-3.3]

Our design inference is to report both the source boundary and the consumer's applied position. A drained event queue, a completed scan and a versioned metadata index answer different questions. Spyglass's historical prototype is not a generic fanotify feature, and metadata search is not a restoration test. This comparison adds no new performance measurement.

Watch identity and inventory identity differ. Spyglass stores separate index entries for symbolic and hard links. [Spyglass, section 4] Our inference is that deduplicating native watches by inode must not silently deduplicate the application's pathname inventory: two names may share notification state while remaining two searchable entries. Conversely, two index entries do not imply two independent event queues.

Index retention changes the questions you can answer. Spyglass can collapse hourly increments into a current baseline, losing hour-by-hour query resolution unless those versions were separately retained. Retained checkpoints preserve selected historical index states. This is metadata-history retention, not retention of the corresponding file payloads. [Spyglass, section 3.2] Our operational inference is to specify required query granularity separately from backup recovery points.

A searchable index is not an authorization layer. The Spyglass paper leaves search security and interface design to future work. Its prototype results therefore do not establish permission-filtered search for multiple users. [Spyglass, sections 2.2 and 6]

A completed rescan can still miss a live file

Reconciliation needs its own coverage evidence. In a separate 48-execution experiment, a complete walk of two directories reported zero or two file reads even though exactly one regular file remained in the tree. Every observed payload matched its fixed byte reference. No operation failed.

We tested Python 3.12.3 os.walk and os.fwalk on ext4 and tmpfs, three repetitions of each schedule per API and mount, on Linux 6.8.0-146-generic. Both APIs visited root, left and right in that order. The harness moved the file only after finishing left and before advancing to right. These are deliberately ordered interleavings, not randomized concurrency or a measured backup failure rate.

One persistent regular file per execution. Both APIs and both mounts agreed; twelve executions per schedule.
Controlled scheduleFile reads per walkExecutionsReported errors
No move: file in left1120
No move: file in right1120
Move right to left after scanning left0120
Move left to right after scanning left2120

Moving right to already-visited left places the file behind the scan: neither directory lists it when visited. Moving left to not-yet-visited right lets the walker read it at both names. The latter does not mean two files existed together. A held descriptor and device/inode comparisons establish that both reads concern the same live file; no hard links are created. Byte checking cannot detect an object that was never discovered.

In all 48 executions, the root directory's identity, mtime and ctime were unchanged across the walk. Its children remained named left and right; the move affected entries inside them. This refutes using an unchanged root timestamp as a whole-tree completeness test. We do not claim that the immediate child directories' timestamps were unchanged.

The descriptor-based control reads through each yielded directory descriptor before advancing. It still misses or repeats the file. Python documents both live list construction and the limited lifetime of fwalk descriptors. [5] Our inference is specific: anchoring a lookup to a directory helps identify that lookup's context; it does not freeze all directories at one instant. Sorting names likewise fixes order, not state.

ViewBox's historical design exposes frozen filesystem views for synchronization; it distinguishes single-client and weaker multi-client consistency. [4, sections 3.3.1-3.3.2] Our probe is not a ViewBox replication. It supplies a small, independent counterexample at the inventory stage, before upload ordering or recovery is considered.

A continuation cursor is not a snapshot identifier

Linux's d_off is filesystem-specific, not a portable byte offset. [6] NFSv4.1 uses a READDIR cookie with a verifier to continue a directory listing. A verifier deemed invalid requires NFS4ERR_NOT_SAME; the cookie is not a read offset. [7, sections 18.23.3-18.23.4]

READDIR success also need not mean every requested attribute was obtained. When the client requests rdattr_error, a server can report an entry-specific attribute error without failing the whole listing. Check those per-entry results separately from the operation status. This is documented protocol behavior, not an outcome measured by our local probe. [7, section 18.23.3]

Our protocol-scope inference: successful continuation is not evidence that several directories represent one instant. No NFS mount was tested here. Keep cursor validity, enumeration coverage, byte integrity and application consistency as separate claims.

Reproduce the scan frontier

The directory-walk probe, full operation transcripts, derived summary and provenance and hashes are separate from the earlier inotify experiment.

python3 directory-walk-coverage.py --directory . --directory /dev/shm --repetitions 3 --output fresh.json

Linux, Python 3 with fwalk and findmnt are required. Parent paths are only locations for new disposable fixtures; existing trees are not scanned or modified. Existing output files are rejected. A failed operation aborts the run. We tested no backup product, NFS mount, power interruption, symlink traversal or mutation during an individual read.

For a point-in-time inventory, our recommendation is a documented stable source view with the required application scope, or an explicitly validated reconciliation protocol. If the source remains live, report the scan interval, exclusions and unresolved changes. Deduplication can remove repeated objects but cannot recover unseen ones. A second walk is useful reconciliation, not by itself proof of completeness under continuing changes.

When a change cursor loses its history

An empty result needs a continuity check. Watchman offers a higher-level change index over filesystem notifications. Its clock identifies an observation position, not a backup generation. After a private root watch was removed and recreated, applying its response as an ordinary delta left a deleted filename in our client index. The server had correctly declared a fresh instance.

We ran six controlled schedules three times on ext4 and tmpfs: 36 executions on one Linux 6.8 host. The binary was Ubuntu's Watchman 4.9.0-7build4 package, reporting 4.9.0, with the inotify watcher. This is a version-scoped reproduction of documented behavior, not a newly discovered defect or a test of a current release.

Each fixture started with keep.dat and gone.dat. Except in the quiet control, we removed gone.dat and created added.dat before querying. The independent oracle was the exact current filename set. No writer ran during a query.

Six executions per row. Stale and missing names are errors in a consumer that treats every response as a delta, not server errors.
ScheduleFresh instanceReturned entriesStale namesMissing names
Continuous, no changesNo000
Continuous, delete and addNo200
Watch reset, default responseYes210
Watch reset, empty-on-freshYes011

With continuous history, the two entries describe a deletion and an addition. After reset, the two default entries instead describe the two surviving files; no deletion record remains for the old name. A delta-only consumer retains three names. Replacing the complete declared scope with this successful baseline restores the correct two-name index.

The empty_on_fresh_instance option suppresses those baseline entries: files=[] arrives together with is_fresh_instance=true. It does not establish an unchanged or empty tree. An explicit full query recovered the correct membership in our quiescent fixture. Official documentation defines both responses; the pinned implementation also checks server identity, root identity and retained-history age. We tested root reset, not automatic recrawl or aging-out. [Query] [Implementation]

A valid cursor can still be acknowledged too early. Two further schedules deliberately discarded the first changed-file response. One queried again using its returned clock before applying the changes; the other repeated a named-cursor query. Both retries returned zero entries with the fresh flag false, leaving one stale and one missing name. Replaying the earlier explicit clock recovered both changes in every execution while the history was retained.

Named cursors advance when queried; they cannot be rolled back. That convenience is different from committing the consumer's index. [Clockspec] Our engineering recommendation is to publish index updates and their cursor as one recoverable state transition. On continuity loss, rebuild the complete declared scope before accepting a new baseline. Do not erase an index on a failed, partial or intentionally suppressed result.

A query synchronization cookie helps bring the notification view current; it does not freeze later file-content reads. A plain clock call without its synchronization option may precede pending notifications. [Query synchronization] [Clock] The earlier scan experiment still matters: a reconciled name index alone does not establish an application-consistent backup.

Download the isolated runner, 36 native transcripts, derived summary, tests, hash manifest and reproduction notes. All 36 recovery controls matched the filename oracle. We injected no overflow, daemon crash or power failure, tested no backup product, and estimated no failure rate.

A valid clock can outlive the selection it indexed

Continuity is necessary, but the query scope must agree too. In a separate 18-execution experiment, no application file changed after the baseline. Reusing its explicit clock with a broader filter missed an existing file; a narrower filter left an excluded name in a delta-only index. Every incremental response was empty with is_fresh_instance=false.

Each private root contained keep.dat and note.txt. We kept the .dat expression, broadened it to .dat or .txt, or narrowed that combined expression back to .dat. Three repetitions on each of ext4 and tmpfs used the same Watchman 4.9.0 package as the history experiment. File bytes remained unchanged; synchronization-cookie names matched neither expression.

Six executions per selection change. Extra and missing names are measured against the new selection, not against the whole directory.
SelectionFresh instanceReturned entriesExtra namesMissing names
Keep .datNo000
Include .txt tooNo001
Exclude .txtNo010

The broader query did not return unchanged note.txt; the narrower query did not emit an instruction to remove it from the old selection. Neither is a missing filesystem event. Watchman's documentation separates candidate generation from expression filtering. [File queries] Our result illustrates the consumer obligation: a history position does not encode the selection used to build its index.

Keep the selection contract with the index and cursor. When it changes, migrate the selected state explicitly or establish a new baseline. A full query under the new expression, followed by replacement of the declared index scope, matched the independent filename oracle in all 18 executions. For a narrower scope, a correctly implemented local exclusion can also be sufficient; this experiment tests full replacement, not every migration strategy. Removing an index entry does not mean deleting its source file.

The separate scope probe, native transcripts, summary, tests, hash manifest and method preserve this evidence independently of the earlier 36 cases. Only quiescent suffix-filter changes were tested, not a current release, concurrent backup or crash-recovery protocol.

Use events to schedule work; retain a way to check state

For a backup or indexer, our engineering recommendation is to treat notifications as candidates for reconciliation, not as a complete transaction history. The results support three concrete checks:

  1. Test the writers you actually run. Include shared mappings and long-lived descriptors, not only small files written and immediately closed.
  2. Separate activity from coverage. Record the watched scope, gaps and successful reconciliation separately from event totals. The grandparent control demonstrates how an active watch can miss the relevant file.
  3. Define the capture contract. A rescan can discover changed state, but reading a live tree is not automatically an application-consistent snapshot. Use a suitable snapshot or application protocol when recovery requires one.

Repeated hints can be combined into a pending-file work item to avoid redundant rereads. Any such optimization must still handle a new change arriving during the read; clearing a pending flag after processing without checking for newer work can discard it. This is a design recommendation, not a benchmark or an implementation tested here.

For the next stages, see snapshot and recovery scope and backup verification and restoration. The corpus entry for inotify provides the compact definition and source links.

Run the probe on your own mount

Download the Python probe and complete JSON observations. Requirements are Linux, Python 3 and findmnt; no Python packages or privileges are needed. Choose writable test directories:

python3 inotify-observation.py --directory . --directory /dev/shm --repetitions 5 --output results.json

Each case uses a private temporary directory and a fresh file, installs its watch after setup, verifies the whole payload, and records raw events plus SHA-256 hashes. The final queue read waits up to 50 ms if nothing is ready and then drains to EAGAIN. No concurrent writer is involved. Mount types, kernel, Python, libc, page size and the probe's hash accompany the results.

The original inotify probe did not test device cache eviction, power interruption, rename races, network filesystems, overflow stress or end-to-end backup. A matching cached read is evidence of visible contents, not proof of survival after power loss. The two mount types are on the same host and are not independent hardware populations.

Primary sources

  1. Linux man-pages 6.19: inotify(7), Notes and Limitations. Accessed 2026-10-19.
  2. Linux v6.8: fsnotify_close selects close events by file mode. Accessed 2026-10-19.
  3. Buettcher and Clarke: Adding Full-Text Filesystem Search to Linux, ;login: 31(3), 2006, pp. 28-33. Accessed 2026-10-19.
  4. Zhang, Dragga, Arpaci-Dusseau and Arpaci-Dusseau: ViewBox, FAST 2014, pp. 119-132. Accessed 2026-10-19.
  5. Python 3.12 documentation: os.walk and os.fwalk. Accessed 2026-10-21.
  6. Linux getdents(2): directory entries and filesystem-specific d_off. Accessed 2026-10-21.
  7. Noveck and Lever: RFC 8881, NFSv4.1 READDIR, sections 18.23.3-18.23.4. Accessed 2026-10-21.
  8. Watchman: query responses, fresh instances and synchronization. Accessed 2026-10-21.
  9. Watchman: explicit clocks and named cursors. Accessed 2026-10-21.
  10. Watchman v4.9.0: ClockSpec::evaluate and named-cursor advancement. Accessed 2026-10-21.
  11. Watchman: clock command synchronization option. Accessed 2026-10-21.
  12. Watchman File Queries: generators and expression evaluation. Accessed 2026-10-21.
  13. Linux man-pages 6.19: fanotify(7), events, limitations and group closure. Accessed 2026-11-17.
  14. Linux man-pages 6.19: fanotify_mark(2), mount, filesystem and child marks. Accessed 2026-11-17.
  15. Linux man-pages 6.19: fanotify_init(2), notification classes and unprivileged groups. Accessed 2026-11-17.
  16. Linux v6.14: fsnotify_mmap_perm pre-content hook. Accessed 2026-11-17.
  17. Leung, Shao, Bisson, Pasupathy and Miller: Spyglass, FAST 2009, pp. 153-166. Accessed 2026-11-17.
  18. Linux man-pages 6.19: inotify_add_watch(2). Accessed 2026-11-20.
  19. Linux man-pages 6.19: inotify_rm_watch(2). Accessed 2026-11-20.
  20. Linux man-pages 6.19: dup(2). Accessed 2026-11-20.
  21. Linux man-pages 6.19: inotify_init(2). Accessed 2026-11-20.
  22. Linux v6.8: inotify_handle_inode_event removes a one-shot mark. Accessed 2026-11-20.
  23. Linux v6.8: watch update and event queue consumption. Accessed 2026-11-20.
  24. fsnotify v1.10.1: pinned Linux watch registration and event-name construction. Accessed 2026-11-20.
  25. fsnotify v1.10.1: public API and direct-file watch guidance. Accessed 2026-11-20.
  26. Hesela: native fsnotify alias and event-name identity controls. Accessed 2026-11-20.
  27. Linux v6.8: EXCL_UNLINK event-path filtering. Accessed 2026-11-20.
  28. Linux v6.8: d_unlinked tests directory-entry state. Accessed 2026-11-20.
  29. Linux v6.8: fsnotify_file uses the open file path, lines 92-101. Accessed 2026-11-20.
  30. Hesela: raw directory notifications after unlink, original and separate C controls. Accessed 2026-11-20.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. What inotify misses: mapped writes and collapsed change events. Hesela. 2026-11-21. https://hesela.com/analyses/inotify-change-detection/