From owner-cvs-src@FreeBSD.ORG Thu Jul 8 06:08:05 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C66116A4CE; Thu, 8 Jul 2004 06:08:05 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F0D643D4C; Thu, 8 Jul 2004 06:08:05 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 06CC75C850; Wed, 7 Jul 2004 23:08:05 -0700 (PDT) Date: Wed, 7 Jul 2004 23:08:05 -0700 From: Alfred Perlstein To: Bruce Evans Message-ID: <20040708060805.GK95729@elvis.mu.org> References: <200407072047.i67Klgqu082069@repoman.freebsd.org> <200407072225.i67MP03s039814@khavrinen.lcs.mit.edu> <20040707233455.GI95729@elvis.mu.org> <200407080133.i681XnxH041060@khavrinen.lcs.mit.edu> <20040708154704.L13116@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040708154704.L13116@gamplex.bde.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Garrett Wollman Subject: Re: cvs commit: src/lib/libc/sys pathconf.2 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 06:08:05 -0000 * Bruce Evans [040707 23:04] wrote: > On Wed, 7 Jul 2004, Garrett Wollman wrote: > > > < said: > > > > > if _PC_NO_TRUNC returns 1 then an application should assume that > > > names longer than 14 characters (_POSIX_NAME_MAX) are truncated??? > > > > No. Under obsolete versions of POSIX, if {NO_TRUNC} is nonzero, an > > application should assume that pathname components longer than > > {NAME_MAX} are not truncated, but instead result in the [ENAMETOOLONG] > > error. Under the current version of POSIX, [ENAMETOOLONG] is > > mandatory for all systems; this was an obsolete option to allow for > > the behavior of the V7 filesystem, which has been phased out. > > This doesn't apply to FreeBSD. Truncation is still useful (and used) for > old non-POSIX file systems like msdosfs: > > % static int > % msdosfs_pathconf(ap) > % struct vop_pathconf_args /* { > % struct vnode *a_vp; > % int a_name; > % int *a_retval; > % } */ *ap; > % { > % struct msdosfsmount *pmp = VTODE(ap->a_vp)->de_pmp; > % > % switch (ap->a_name) { > % ... > % case _PC_NO_TRUNC: > % *ap->a_retval = 0; > % return (0); > % ... > % } > > htpfs and ntpfs also return 0 for _PC_NO_TRUNC, possibly for less reason. > AFAIK they don't have too-small file name lengths, but they may need to > truncate names because that is what their native operating system does. This is over my head, can someone please fix it? :) -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684