kern/161481: mount fails with ENAMETOOLONG with path shorter
than 255 // 1023 characters
Garrett Cooper
yanegomi at gmail.com
Tue Oct 11 08:30:10 UTC 2011
The following reply was made to PR kern/161481; it has been noted by GNATS.
From: Garrett Cooper <yanegomi at gmail.com>
To: FreeBSD-gnats-submit at freebsd.org
Cc: Garrett Cooper <yanegomi at gmail.com>
Subject: Re: kern/161481: mount fails with ENAMETOOLONG with path shorter
than 255 // 1023 characters
Date: Tue, 11 Oct 2011 00:57:44 -0700 (PDT)
I looked into this more closely after I submitted the bug and the problem
is the arbitrarily short value attached to MNAMELEN:
122537 mckusick #define MNAMELEN 88 /* size of
on/from name bufs */
The value has changed over the years (all the way back to the mid-90s)
from 90 to 70 to 80 to 88, but each time the author doesn't clearly state
why the change was required.
Testing out a kernel with the newly imposed limits to determine if the new
limit is functional and/or there's a major performance regression with the
new limit.
Thanks,
-Garrett
More information about the freebsd-bugs
mailing list