From 7f018e7898c3508cb26962ee4a2e1b8956721ef0 Mon Sep 17 00:00:00 2001 From: Erdem Meydanli Date: Wed, 27 May 2020 23:56:53 +0200 Subject: [PATCH] fs/nfs/nfs_proto.h: Use of uint64_t in the data types breaks NFS functionality. The use of uint64_t primitive type in NFS structures forces the compiler to align data on an 8-byte boundary. As a result of this, unwanted gaps being created, which causes NFS to fail. (e.g., nfs_read/initialize the request) Using nfsuint64 instead of uint64_t fixes this issue. --- fs/nfs/nfs_proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/nfs_proto.h b/fs/nfs/nfs_proto.h index 7b63d00cc3..2f241c3400 100644 --- a/fs/nfs/nfs_proto.h +++ b/fs/nfs/nfs_proto.h @@ -426,7 +426,7 @@ struct LOOKUP3resok struct READ3args { struct file_handle fhandle; /* Variable length */ - uint64_t offset; + nfsuint64 offset; uint32_t count; }; @@ -449,7 +449,7 @@ struct READ3resok struct nfs_wrhdr_s { struct file_handle fhandle; /* Variable length */ - uint64_t offset; + nfsuint64 offset; uint32_t count; uint32_t stable; uint32_t length;