[Samba] Path length problem?
jra at samba.org
Tue Mar 31 16:53:18 UTC 2020
On Tue, Mar 31, 2020 at 06:07:51PM +0200, Stephan von Krawczynski via samba wrote:
> Hello all,
> I am trying to investigate if a path length problem is solvable at all under
> linux/samba. To my knowledge path length on w*ndows can be max 32767 chars and
> filename length max 255 chars.
> But linux (and POSIX) tell me that the maximum path length is 4096. So I would
> expect that copying some deep tree from w*ndows to a samba server might be a
> problem. And indeed we already saw such a problem linked with nextcloud.
> Is there any personal experience about this out there?
Yes, this might be a problem with a sufficiently deeply
nested NTFS filesystem tree.
The only solution would be to use a Samba VFS backend
with a larger PATH_MAX value and re-compile Samba after
making sure you're using a new PATH_MAX definition.
Hope this helps.
More information about the samba