From owner-freebsd-fs@FreeBSD.ORG Tue Apr 5 17:32:39 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74811106566B for ; Tue, 5 Apr 2011 17:32:39 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 04E9A8FC18 for ; Tue, 5 Apr 2011 17:32:38 +0000 (UTC) Received: by ewy1 with SMTP id 1so217570ewy.13 for ; Tue, 05 Apr 2011 10:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bJ6yfpL1Im/oxD/LnPfw8EOXtEKnNWSpoqkx2/2htJw=; b=xpmA3Q3iQ4aPOihcvRCy4Dvbkn+PTC3OBQauDKSLdmQkkRY13E1/KQmydijtcbqPzr x0dtH3spRgoWBDKZl0XOlxKzAaa1A0HWjBEKd26J4EWLg/Ejq2XuN++CApvkelXd86Ki IR7THu069xF5oNuly4olS6mzII9kw1SiihMu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nsv9xgsfKJ3A8lEJSNdwaE1jMCEBqn1Ow2bZYmosWmYwfkQD4yzY2orDjrA03RBmvo /4PO41+saFggJN2DgUH5W49C4OyhDfrIEPiDpkMCBaqXVaNavMCLq1eS59NEiJngXOMo tHetu6ByHDY8sGBOdCkgFoZ5iQXqrLSIatoZs= MIME-Version: 1.0 Received: by 10.14.53.207 with SMTP id g55mr4360652eec.148.1302023206919; Tue, 05 Apr 2011 10:06:46 -0700 (PDT) Received: by 10.213.112.212 with HTTP; Tue, 5 Apr 2011 10:06:46 -0700 (PDT) In-Reply-To: <20110405183104.2304d94e@ernst.jennejohn.org> References: <20110405141631.GA78089@deviant.kiev.zoral.com.ua> <20110405172746.4a02fe42@ernst.jennejohn.org> <20110405154002.GD78089@deviant.kiev.zoral.com.ua> <20110405183104.2304d94e@ernst.jennejohn.org> Date: Tue, 5 Apr 2011 13:06:46 -0400 Message-ID: From: Ryan Stone To: gljennjohn@googlemail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: Knob to turn off _POSIX_NO_TRUNC X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 17:32:39 -0000 On Tue, Apr 5, 2011 at 12:31 PM, Gary Jennejohn wrote: > OK, but trimming to me as a native english speaker means returning ENAMET= OOLONG > rather than allowing names longer than NAME_MAX. =A0That is, after all, w= hat trimming > means - cutting off. The two behaviours here are: lookup_trim =3D=3D 1 -- filenames are silently truncated(i.e. trimmed) if longer than NAME_MAX lookup_trim =3D=3D 0 -- filenames longer than NAME_MAX are rejected with ENAMETOOLONG The name makes perfect sense to me, personally.