Return correct qids in Ropen and Rcreate.
This commit is contained in:
parent
fb73d5ca47
commit
e35c023dac
1 changed files with 9 additions and 1 deletions
10
backend/fs.c
10
backend/fs.c
|
@ -397,7 +397,13 @@ fs_create(void *softc, struct l9p_request *req)
|
|||
l9p_respond(req, errno);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (stat(newname, &st) != 0) {
|
||||
l9p_respond(req, errno);
|
||||
return;
|
||||
}
|
||||
|
||||
generate_qid(&st, &req->lr_resp.rcreate.qid);
|
||||
l9p_respond(req, 0);
|
||||
}
|
||||
|
||||
|
@ -437,6 +443,8 @@ fs_open(void *softc __unused, struct l9p_request *req)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
generate_qid(&st, &req->lr_resp.ropen.qid);
|
||||
|
||||
req->lr_resp.ropen.iounit = conn->lc_max_io_size;
|
||||
l9p_respond(req, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue