According to the NFSv3 protocol: Directory traversal should start with cookie '0' - "." entry as the first entry, cookie should be '0' - '.." entry as the second entry, cookie should be '1'

This commit is contained in:
ston3lu
2025-08-24 14:44:48 +03:00
committed by Vitaliy Filippov
parent c24cc9bf0b
commit d8332171e9
+1
View File
@@ -166,6 +166,7 @@ resume_2:
entryplus3 dotdot = {};
dotdot.name = xdr_copy_string(st->rop->xdrs, "..");
dotdot.fileid = st->dir_ino;
dotdot.cookie = 1;
dotdot.name_attributes = (post_op_attr){
// FIXME: maybe do not read parent attributes and leave them to a GETATTR?
.attributes_follow = 1,