Skip to content

std.Build.Watch: key fanotify file descriptors by mount id #24113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinboulain
Copy link

I hope it's okay to take over the inactive pull request #20672. The patch is very similar but I've taken into account the review comments: since indices correspond between the 'public' DirTable and 'private' (to the Linux implementation) HandleTable I've stashed the mount point information in there. However, the Windows implementation is quite similar and shares markAllFilesDirty so I had to add a small edge case, not sure what you'll think of it.
I've been using Zig for the past two weeks so apologies if I'm not following conventions. I've tested my change by following the wiki and since I'm on NixOS I'm hitting this problem immediately (same error message as #20670).

Fixes #20670.
Closes #20672.

Since marks are limited to a single filesystem.
Context: ziglang#20670
Original pull request: ziglang#20672

Co-authored-by: Maciej 'vesim' Kuliński <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file system watching on linux fails to avoid placing marks from different mounts into the same fanotify descriptor
1 participant