diff options
author | Michael Kelly <mike@weatherwax.co.uk> | 2025-07-10 18:36:39 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-07-10 18:37:05 +0200 |
commit | 09860e8f80d095e94bc15d9b67e708cc77fab16f (patch) | |
tree | aede2396e5eae029d84d8ee6f085a739eb1d8ca6 | |
parent | cdedbc4b018212f60e7e64b9696d6a7641281452 (diff) |
-rw-r--r-- | nfs/ops.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -537,12 +537,17 @@ netfs_attempt_write (struct iouser *cred, struct node *np, p = xdr_encode_fhandle (p, &np->nn->handle); if (protocol_version == 2) + { *(p++) = 0; - *(p++) = htonl (offset); - if (protocol_version == 2) + *(p++) = htonl (offset); *(p++) = 0; - if (protocol_version == 3) + } + else + { + p = xdr_encode_64bit(p, offset); + *(p++) = htonl (thisamt); *(p++) = htonl (FILE_SYNC); + } p = xdr_encode_data (p, data, thisamt); err = conduct_rpc (&rpcbuf, &p); |