2023-12-03 21:23:51

by Cedric Blancher

[permalink] [raw]
Subject: PATH_MAX/max symlink length in the NFSv4/v4.1 protocol?

Good evening!

Does NFSv4/v4.1 have a limit similar to PATH_MAX? What about
symlinks/reparse points? Is there no limit, or is the limit
configurable, or is the limit >= 4096?

Ced
--
Cedric Blancher <[email protected]>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur


2023-12-04 23:31:52

by NeilBrown

[permalink] [raw]
Subject: Re: PATH_MAX/max symlink length in the NFSv4/v4.1 protocol?

On Mon, 04 Dec 2023, Cedric Blancher wrote:
> Good evening!
>
> Does NFSv4/v4.1 have a limit similar to PATH_MAX? What about
> symlinks/reparse points? Is there no limit, or is the limit
> configurable, or is the limit >= 4096?

See:
https://www.rfc-editor.org/rfc/rfc5661

There is no explicit limit.
The local filesystem on the server might impose a limit, but the
protocol itself does not.

The protocol *does* declare that a symlink is valid UTF-8. Linux
doesn't enforce this. This might sometimes cause confusion. But the
length should not.

NeilBrown


>
> Ced
> --
> Cedric Blancher <[email protected]>
> [https://plus.google.com/u/0/+CedricBlancher/]
> Institute Pasteur
>
>