From owner-freebsd-fs@FreeBSD.ORG Wed Apr 6 07:14:51 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 CAFFE106564A for ; Wed, 6 Apr 2011 07:14:51 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 52B568FC08 for ; Wed, 6 Apr 2011 07:14:50 +0000 (UTC) Received: by fxm11 with SMTP id 11so986065fxm.13 for ; Wed, 06 Apr 2011 00:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=oJguafHp7PzV73UUDnAhtot1EiVdY6DVn31f0/dJYzs=; b=Wxn/scX59wiVscYq6WsuV4dbnqqYwtDc03kJ+4LYO+mBwwwVXcrtjH7OLrTZUxg4vW FE/SPrt6eDxvcRNfQCQrVHveaZptdaLUf/36nmqc0sx/aXkrR1/L1k/ukRMUEBLmv+h+ lilDotUa5Q5/tXdxUbhInmoKroStISNp3F2rY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=ff1KZUxVIoEU9sn1jdVnd1/uKY5Rqj7BeNdQkMv8+hnDqj5UZhyZGQVcjzv4RxiqpG q3ZDlfBWCM1dmLPokQboC1PEQQ2ONOOh+fvo7tb+BFM02LXZguSMU9nVVZJPhzwLgz/q dLl2rRGfHjTeISjjPsBCXO0mDRcZhxetdQGXQ= Received: by 10.223.63.212 with SMTP id c20mr667832fai.37.1302074090193; Wed, 06 Apr 2011 00:14:50 -0700 (PDT) Received: from ernst.jennejohn.org (p578E31D4.dip.t-dialin.net [87.142.49.212]) by mx.google.com with ESMTPS id n9sm80528fax.27.2011.04.06.00.14.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Apr 2011 00:14:49 -0700 (PDT) Date: Wed, 6 Apr 2011 09:14:47 +0200 From: Gary Jennejohn To: freebsd-fs@freebsd.org Message-ID: <20110406091447.0205de17@ernst.jennejohn.org> In-Reply-To: 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> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Knob to turn off _POSIX_NO_TRUNC X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2011 07:14:51 -0000 On Tue, 5 Apr 2011 13:06:46 -0400 Ryan Stone wrote: > On Tue, Apr 5, 2011 at 12:31 PM, Gary Jennejohn > 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