Skip to content

avoid file system watches on read-only mounts #20669

@andrewrk

Description

@andrewrk

Follow-up from #20580.

name_to_handle_at gives us a mount ID here:

try posix.name_to_handle_at(path.root_dir.handle.fd, adjusted_path, stack_ptr, &mount_id, std.os.linux.AT.HANDLE_FID);

If this mount is read-only then the watch system should not waste any resources placing a mark on any directories within because they will never change!

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.optimizationos-linuxzig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions