diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-16 06:16:43 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-16 06:16:43 +0200 |
commit | d84aeddee7911c9df739bad58c72189ac336f23f (patch) | |
tree | b95c84553f3e0938d042d93c53fe66f2b26981f8 /sys | |
parent | 389f45750535ff61d8f9d65d26ed50df12acc161 (diff) |
devmnt: add debug print for convS2M failing, suspecting this causing zero length writes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/9/port/devmnt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/9/port/devmnt.c b/sys/src/9/port/devmnt.c index da51d0366..926b6ee61 100644 --- a/sys/src/9/port/devmnt.c +++ b/sys/src/9/port/devmnt.c @@ -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); |