M port/cache.c => port/cache.c +2 -1
@@ 80,6 80,7 @@ cprint(Chan *c, Mntcache *m, char *s)
ptpath(c->path, buf, sizeof(buf));
nb = 0;
ct = 1;
+ o = 0;
if(m->list)
o = m->list->start;
for(e = m->list; e; e = e->next) {
@@ 92,7 93,7 @@ cprint(Chan *c, Mntcache *m, char *s)
s, m->path, m->vers, m->type, m->dev, buf, nb, ct ? 'C' : 'N');
for(e = m->list; e; e = e->next) {
- if(0) pprint("\t%4d %5d %4d %lux\n",
+ pprint("\t%4d %5d %4d %lux\n",
e->bid, e->start, e->len, e->cache);
}
}
M port/devmnt.c => port/devmnt.c +2 -6
@@ 667,9 667,8 @@ mountio(Mnt *m, Mntrpc *r)
void
mntrpcread(Mnt *m, Mntrpc *r)
{
- int n, zrd;
+ int n;
- zrd = 0;
for(;;) {
if(waserror()) {
if(mntflush(m, r) == 0) {
@@ 683,11 682,8 @@ mntrpcread(Mnt *m, Mntrpc *r)
r->reply.tag = 0;
n = (*devtab[m->c->type].read)(m->c, r->rpc, MAXRPC, 0);
poperror();
- if(n == 0) {
- if(++zrd > 3)
- error(Ehungup);
+ if(n == 0)
continue;
- }
if(convM2S(r->rpc, &r->reply, n) != 0)
return;
M port/qio.c => port/qio.c +1 -1
@@ 365,7 365,7 @@ qproduce(Queue *q, void *vp, int len)
b = iallocb(len);
if(b == 0){
unlock(q);
- return -1;
+ return -2;
}
memmove(b->wp, p, len);
b->wp += len;