Bug 207763

Summary: stat()'s st_nlink is capped to 32767
Product: Base System Reporter: nagy.attila
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: sigsys
Priority: ---    
Version: 10.3-BETA2   
Hardware: Any   
OS: Any   

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:
https://lists.freebsd.org/pipermail/freebsd-fs/2016-March/022845.html