v9fs/client.c:fix struct attach wrong parameter size

Summary:
  Change uint16_t afid -> uint32_t afid in struct v9fs_attach_s
  See: https://github.com/chaos/diod/blob/master/protocol.md

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2024-10-10 14:57:41 +08:00 committed by Xiang Xiao
parent 928656f3cb
commit 2ac2d5d511

View file

@ -173,7 +173,7 @@ begin_packed_struct struct v9fs_attach_s
{ {
struct v9fs_header_s header; struct v9fs_header_s header;
uint32_t fid; uint32_t fid;
uint16_t afid; uint32_t afid;
uint8_t buffer[2 * (V9FS_BIT16SZ + NAME_MAX) + V9FS_BIT32SZ]; uint8_t buffer[2 * (V9FS_BIT16SZ + NAME_MAX) + V9FS_BIT32SZ];
} end_packed_struct; } end_packed_struct;