Better HN
topnewbestaskshowjobs
Log inSign up

cptparticles

6 karma · joined Jul 23, 2022 (4y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

Windows does not allow hardlinks to directories, but it does have the concept of junction points.

https://learn.microsoft.com/en-us/sysinternals/downloads/jun...

comment 4y ago · link · parent

In Windows both NTFS and ReFS keep backpointers to all their names. They store the file ID of the directory, and the name of the file in the directory. In NTFS these are stored as a special attribute, and in ReFS they reside as rows in the file table.

It's required for a few reasons. Historically NTFS has had an API to query all of a files names and this needs to be done efficiently. And when a file is opened by ID, the file system needs to construct a canonical path for it in the name space.

Source: I am the Microsoft developer that added hardlink support to ReFS. All opinions are my own.