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

Watch: Create fanotify per mount_id #20672

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

Conversation

vesim987
Copy link
Contributor

@vesim987 vesim987 commented Jul 18, 2024

This is very naive implementation, but it seems to be working fine.

Fixes #20670

@@ -14,14 +14,16 @@ generation: Generation,
/// interested in noticing changes to.
///
/// Value is generation.
const DirTable = std.ArrayHashMapUnmanaged(Cache.Path, void, Cache.Path.TableAdapter, false);
const DirTable = std.ArrayHashMapUnmanaged(Cache.Path, MountId, Cache.Path.TableAdapter, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that because this is a Linux-specific change, that this is the wrong place to add MountId and should instead be moved inside the Linux-specific Os struct defined below in this file.

For example, I use DirTable in this windows implementation where this MountId wouldn’t be needed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I will make that adjustment prior to merging. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants