~kris/9p

9hist

de64b9c37ab2afc490cfb649a023a5d06454f969 — David du Colombier 32 years ago e8e1e61
Plan 9 from Bell Labs 1993-11-03
3 files changed, 5 insertions(+), 8 deletions(-)

M port/cache.c
M port/devmnt.c
M port/qio.c
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;