Bug 207763 - stat()'s st_nlink is capped to 32767
Summary: stat()'s st_nlink is capped to 32767
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.3-BETA2
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2016-03-07 08:19 UTC by nagy.attila
Modified: 2018-11-12 14:52 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description nagy.attila 2016-03-07 08:19:19 UTC
UFS limits the number of hard links to a file to signed 16 bit integers.
ZFS doesn't have this limit and allows creating millions of hardlinks to a file.
The problem here is stat reports false values after 32767, it's capped to that value.

It would be good to fix this legacy someday.

Discussed here: