Fwd: Re: Long pathnames

Matt Mackall mpm at selenic.com
Sun Jul 20 17:28:07 CDT 2008


On Sun, 2008-07-20 at 21:19 +0200, Arne Babenhauserheide wrote:
> Am Sonntag 20 Juli 2008 11:52:51 schrieben Sie:
> > I'm confused about your statement, because I thought Linux
> > doesn't have a path length limit (besides the disk capacity)?
> 
> I did think so, too, but my system told me differently 

#define NAME_MAX         255    /* # chars in a file name */
#define PATH_MAX        4096    /* # chars in a path name including nul */

The latter is the longest name you can pass to the kernel as a
parameter. But paths on disk can be much longer: you simply have to pass
in relative pathnames.

But of course you've exceeded the first limit.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list