[Bug 207763] stat()'s st_nlink is capped to 32767

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 7 08:19:19 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207763

            Bug ID: 207763
           Summary: stat()'s st_nlink is capped to 32767
           Product: Base System
           Version: 10.3-BETA2
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bra at fsn.hu

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list