On Thu, Jan 2, 2025 at 4:38 PM Benjamin Coddington <bcodding@xxxxxxxxxx> wrote: > > On 26 Dec 2024, at 19:45, Takeshi Nishimura wrote: > > > Dear list, > > > > Is there a document which explains the structure of the Linux > > NFSv4.1/4.2 client source code? > > No, I don't believe there is any such document. > > > And where can I find the code which negotiates between NFSv4.1 and > > NFSv4.2 versions, and a potential NFSv4.3? > > For the client, that code is in the nfs-utils tree in the mount.nfs binary, > source in utils/mount/stropts.c - look for "nfs_autonegotiate()". If the > mount command does not specify exactly the minor version, then a mount is > tried with decreasing minor versions. So mount.nfs adds vers=4.2, if that fails it retries with vers=4.1, vers=4.0? Where in the kernel is the minor version from the parsed vers=4.2 option used? -- Internationalization&localization dev / 大阪大学 Takeshi Nishimura <takeshi.nishimura.linux@xxxxxxxxx>