[PATCH 1/1] nfsd: fix handling of WANT_DELEG_TIMESTAMPS on open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Current, the server returns that it supports NFS4_SHARE_WANT_DELEG_TIMESTAMPS
but when the client sends that on the open, knfsd returns back with
bad_xdr error.

Fixes: d0eab73d48a0 ("nfsd: add support for delegated timestamps")
Signed-off-by: Olga Kornievskaia <okorniev@xxxxxxxxxx>
---
 fs/nfsd/nfs4xdr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index c0bad580ab6d..adda8b489175 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1109,6 +1109,7 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *sh
 	case NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED:
 	case (NFS4_SHARE_SIGNAL_DELEG_WHEN_RESRC_AVAIL |
 	      NFS4_SHARE_PUSH_DELEG_WHEN_UNCONTENDED):
+	case NFS4_SHARE_WANT_DELEG_TIMESTAMPS:
 		return nfs_ok;
 	}
 	return nfserr_bad_xdr;
-- 
2.43.5





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux