Max Path length these days
Jeremy Allison
jra at samba.org
Wed Aug 24 15:50:24 GMT 2005
On Wed, Aug 24, 2005 at 10:36:27AM -0400, Michael Lueck wrote:
> Alexander Bokovoy wrote:
>
> >I've seen 255 UTF-8 characters limits in Japanese Windows versions during
> >bug hunting in Samba 3. Not sure that it is hard limit though.
>
> OK, then this entry in the MSCPP header files might not be too short then...
>
> #define MAX_PATH 260
>
> I'll leave MAX_PATH in my code for now. I had seen folks doing crazy things
> like 1024 and 4096 for the max... nice, but if the OS does not support it
> then why waste the space for now.
I think that's actually a directory component length. I'm not sure what
that actual limits are in NTFS (might be very large) but we haven't hit
any problems with a max path of 1024.
Jeremy.
More information about the samba-technical
mailing list