Knob to turn off _POSIX_NO_TRUNC

Ryan Stone rysto32 at gmail.com
Tue Apr 5 17:32:39 UTC 2011


On Tue, Apr 5, 2011 at 12:31 PM, Gary Jennejohn
<gljennjohn at googlemail.com> wrote:
> OK, but trimming to me as a native english speaker means returning ENAMETOOLONG
> rather than allowing names longer than NAME_MAX.  That is, after all, what trimming
> means - cutting off.

The two behaviours here are:

lookup_trim == 1 -- filenames are silently truncated(i.e. trimmed) if
longer than NAME_MAX
lookup_trim == 0 -- filenames longer than NAME_MAX are rejected with
ENAMETOOLONG

The name makes perfect sense to me, personally.


More information about the freebsd-fs mailing list