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:
committed by
Vitaliy Filippov
parent
c24cc9bf0b
commit
d8332171e9
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user