This is an automated email from the ASF dual-hosted git repository. gnutt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 7f018e7898c3508cb26962ee4a2e1b8956721ef0 Author: Erdem Meydanli <[email protected]> AuthorDate: Wed May 27 23:56:53 2020 +0200 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 7b63d00..2f241c3 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;
