async_rpc_send_reply(req, &result);
return;
}
+
+ result.lookup3res_u.resok.dir_attributes.present = TRUE;
+ encode_fattr3(&result.lookup3res_u.resok.dir_attributes.post_op_attr_u.attributes, dir);
+ g_mutex_unlock(dir->lock);
+
BlueSkyInode *inode = bluesky_get_inode(fs, inum);
if (inode == NULL) {
result.status = NFS3ERR_NOENT;
- g_mutex_unlock(dir->lock);
async_rpc_send_reply(req, &result);
return;
}
schedule_inode_unref(req, inode);
result.status = NFS3_OK;
- result.lookup3res_u.resok.dir_attributes.present = TRUE;
- encode_fattr3(&result.lookup3res_u.resok.dir_attributes.post_op_attr_u.attributes, dir);
result.lookup3res_u.resok.obj_attributes.present = TRUE;
encode_fattr3(&result.lookup3res_u.resok.obj_attributes.post_op_attr_u.attributes, inode);
result.lookup3res_u.resok.object.data.data_val = (char *)&fh_bytes;
g_mutex_unlock(inode->lock);
- g_mutex_unlock(dir->lock);
async_rpc_send_reply(req, &result);
}
int i;
g_print("Sending requests...\n");
- for (i = 0; i < 8; i++) {
+ for (i = 0; i < 64; i++) {
char buf[64];
struct diropargs3 lookup;
uint64_t rootfh = GUINT64_TO_BE(1);