in case no creation happens. The result was 'Stale NFS file handle' error in
some tests - 7b, 23. now 23 pass but in 7b the other nasty bug occurs.
!it_disposition(it, DISP_OPEN_CREATE)) {
it_set_disposition(it, DISP_ENQ_COMPLETE);
/* Also: did we find the same inode? */
- if (memcmp(&op_data->fid2, &mdt_body->fid1, sizeof(op_data->fid2)))
+ if (!((it->it_create_mode & O_CREAT) || it->it_op & IT_CREAT)
+ && memcmp(&op_data->fid2, &mdt_body->fid1,
+ sizeof(op_data->fid2)))
RETURN(-ESTALE);
}