]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsv4.1/4.2 client: fix handling of delegations for "oneopenown" mnt option
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 29 Mar 2021 19:09:19 +0000 (12:09 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 29 Mar 2021 19:09:19 +0000 (12:09 -0700)
commite61b29ab5d2d9afd41d9fa06bb1f4cad4e9d0650
tree3bc0ab7669bb971877a15c15199ce8d0fdbc82e3
parent4d5460a720c59a4404eb1df1b768d2f16b2f341a
nfsv4.1/4.2 client: fix handling of delegations for "oneopenown" mnt option

If a delegation for a file has been acquired, the "oneopenown" option
was ignored when the local open was issued. This could result in multiple
openowners/opens for a file, that would be transferred to the server
when the delegation was recalled.
This would not be serious, but could result in more than one openowner.
Since the Amazon/EFS does not issue delegations, this probably never
occurs in practice.
Spotted during code inspection.

This small patch fixes the code so that it checks for "oneopenown"
when doing client local opens on a delegation.

MFC after: 2 weeks
sys/fs/nfsclient/nfs_clstate.c