Skip to content

os: os.Root: use OBJ_DONT_REPARSE on Windows #73080

@neild

Description

@neild

Windows's NtCreateFile takes an OBJECT_ATTRIBUTES struct indicating the file to open. Setting the OBJ_DONT_REPARSE flag in this struct disables following symlinks (and other forms of reparse point). We can use this to implement a fast path in the common case when the target of an os.Root operation does not contain any reparse points.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImplementationIssues describing a semantics-preserving change to the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.OS-WindowsPerformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions