Date: Tue, 5 Apr 2011 18:40:02 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Gary Jennejohn <gljennjohn@googlemail.com> Cc: freebsd-fs@freebsd.org Subject: Re: Knob to turn off _POSIX_NO_TRUNC Message-ID: <20110405154002.GD78089@deviant.kiev.zoral.com.ua> In-Reply-To: <20110405172746.4a02fe42@ernst.jennejohn.org> References: <20110405141631.GA78089@deviant.kiev.zoral.com.ua> <20110405172746.4a02fe42@ernst.jennejohn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--UrGwiw6HlSHyGEfa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 05, 2011 at 05:27:46PM +0200, Gary Jennejohn wrote: > On Tue, 5 Apr 2011 17:16:31 +0300 > Kostik Belousov <kostikbel@gmail.com> wrote: > > @@ -514,8 +519,14 @@ dirloop: > > continue; > > cnp->cn_namelen =3D cp - cnp->cn_nameptr; > > if (cnp->cn_namelen > NAME_MAX) { > > - error =3D ENAMETOOLONG; > > - goto bad; > > + if (!lookup_trim) { >=20 > I would intuitively expect trimming to be enabled when the sysctl is set > to 1, but this is exactly the opposite of that. I personally would > initialize it to 1. Trimming is indeed enabled when lookup_trim is set to 1. If lookup_trim is 0, you get ENAMETOOLONG. --UrGwiw6HlSHyGEfa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk2bN9EACgkQC3+MBN1Mb4j0EwCdGEBIUVNh3ITDTgWAxg/SFmRV CfsAoIL831WAsgy382/4ut1dMXkFYoTz =Rqd3 -----END PGP SIGNATURE----- --UrGwiw6HlSHyGEfa--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110405154002.GD78089>