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.
Windows's
NtCreateFiletakes anOBJECT_ATTRIBUTESstruct indicating the file to open. Setting theOBJ_DONT_REPARSEflag 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 anos.Rootoperation does not contain any reparse points.