Knob to turn off _POSIX_NO_TRUNC
Gary Jennejohn
gljennjohn at googlemail.com
Wed Apr 6 07:14:51 UTC 2011
On Tue, 5 Apr 2011 13:06:46 -0400
Ryan Stone <rysto32 at gmail.com> wrote:
> 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.
After sending off this e-mail the penny dropped and I finally realized
just exactly what the patch is doing. Obviously, the way the sysctl is
being used is correct. So, sorry for the noise.
--
Gary Jennejohn
More information about the freebsd-fs
mailing list