Zhitao Li has uploaded this change for review.

View Change

fix(readdir): encode "next entry" flag in readdir reply

This commit resolves the issue described in #1234.

When FSAL readdir completes without hitting both EOF of the
directory and DIR_TERMINATE in the readdir callback, the
"next entry" flag is missing in the reply. This causes the
Windows NFS client to misinterpret the directory as empty in File
Explorer, while the Linux NFS client handles it correctly.

The fix ensures that the "next entry" flag is included in the
readdir reply in this scenario, allowing Windows clients to
correctly display the directory contents.

Change-Id: I594b03073d9023d1d05ab889f9fbd1a577b603fa
Signed-off-by: zhitaoli <zhitao.li@iomesh.com>
---
M src/Protocols/NFS/nfs3_readdir.c
M src/Protocols/NFS/nfs3_readdirplus.c
M src/Protocols/NFS/nfs4_op_readdir.c
3 files changed, 42 insertions(+), 63 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/69/1209069/1

To view, visit change 1209069. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I594b03073d9023d1d05ab889f9fbd1a577b603fa
Gerrit-Change-Number: 1209069
Gerrit-PatchSet: 1
Gerrit-Owner: Zhitao Li <zhitao.li@iomesh.com>