Skip to content
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

build: watch: Support for multi mount point file systems. #20844

Closed
wants to merge 0 commits into from

Conversation

zkburke
Copy link

@zkburke zkburke commented Jul 28, 2024

On distros that have multiple mount points for different parts of the root directory (like Fedora linux), the existing watch implementation did not account for the need for multiple fannotify file descriptors per mount point: When it hit a directory on a different mount point to the rest of the files being watched, fanotify_mark would return NotSameFileSystem and throw a fatal error. This PR adds a unique file fd per mount point, lazily creating them as directories are added to the watch list.

This is my first contribution to the Zig project so please feel free to bin this change, or provide feedback and changes if you think it's of suitable quality.

@andrewrk
Copy link
Member

Thanks for the patch. It looks like a dupe of #20672. I'm sorry for not fixing it yet, I will look at both implementations and make sure it gets solved soon.

@zkburke
Copy link
Author

zkburke commented Jul 29, 2024

I'm sorry I didn't see the first implementation of this, that's complete carelessness from me. But looks like I had the right kind of idea looking from looking at #20672 though . This can probably be closed if the work's already been done.

@zkburke
Copy link
Author

zkburke commented Aug 9, 2024

Closed this as the implementation didn't do much different to #20672.

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.

2 participants