Skip to content

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.

kevinboulain added a commit to kevinboulain/zig that referenced this pull request Jun 7, 2025
Since marks are limited to a single filesystem.
Context: ziglang#20670
Original pull request: ziglang#20672

Co-authored-by: Maciej 'vesim' Kuliński <vesim809@pm.me>
kevinboulain added a commit to kevinboulain/zig that referenced this pull request Jun 7, 2025
Since marks are limited to a single filesystem.
Context: ziglang#20670
Original pull request: ziglang#20672

Co-authored-by: Maciej 'vesim' Kuliński <vesim809@pm.me>
andrewrk pushed a commit that referenced this pull request Jun 23, 2025
Since marks are limited to a single filesystem.
Context: #20670
Original pull request: #20672

Co-authored-by: Maciej 'vesim' Kuliński <vesim809@pm.me>
dasimmet pushed a commit to dasimmet/zig that referenced this pull request Aug 4, 2025
Since marks are limited to a single filesystem.
Context: ziglang#20670
Original pull request: ziglang#20672

Co-authored-by: Maciej 'vesim' Kuliński <vesim809@pm.me>
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
3 participants