mention hard links

Co-authored-by: Thomas <twatson52@mac.com>
This commit is contained in:
Valentin Gagarin 2022-07-13 11:17:46 +01:00
parent bac86231ad
commit 9cabba1fc3

View file

@ -61,4 +61,9 @@ Examples:
/nix/store/<hash>-bar /nix/store/<hash>-bar
└── bar -> /nix/store/abc...-foo └── bar -> /nix/store/abc...-foo
Nix file system objects do not support [hard links][hardlink]:
each file system object which is not the root has exactly one parent and one name.
However, as store objects are immutable, an underlying file system can use hard links for optimization.
[symlink]: https://en.m.wikipedia.org/wiki/Symbolic_link [symlink]: https://en.m.wikipedia.org/wiki/Symbolic_link
[hardlink]: https://en.m.wikipedia.org/wiki/Hard_link