devmnt: add debug print for convS2M failing, suspecting this causing zero length writes
This commit is contained in:
parent
389f457505
commit
d84aeddee7
1 changed files with 6 additions and 2 deletions
|
@ -794,8 +794,12 @@ mountio(Mnt *m, Mntrpc *r)
|
|||
if(m->msize == 0)
|
||||
panic("msize");
|
||||
n = convS2M(&r->request, r->rpc, m->msize);
|
||||
if(n < 0)
|
||||
panic("bad message type in mountio");
|
||||
if(n <= 0){
|
||||
print("mountio: proc %s %lud: convS2M returned %d for tag %d fid %d T%d\n",
|
||||
up->text, up->pid, n, r->request.tag, r->request.fid, r->request.type);
|
||||
error(Emountrpc);
|
||||
}
|
||||
|
||||
if(devtab[m->c->type]->write(m->c, r->rpc, n, 0) != n)
|
||||
error(Emountrpc);
|
||||
r->stime = fastticks(nil);
|
||||
|
|
Loading…
Reference in a new issue