~pmikkelsen/lpa

a70728e1cc959755252df483ef9c755bf03e5a25 — Peter Mikkelsen 2 months ago 785a925
Tweaks to filesystem for LPA values
2 files changed, 3 insertions(+), 0 deletions(-)

M fs.c
M symtab.c
M fs.c => fs.c +2 -0
@@ 199,6 199,7 @@ symbolsgen(int n, Dir *d, void *aux)

	Symbol *s = symbols->items[n];
	mkfilestat(d, s->name, s->qsymbol, 0666);
	d->length = strlen(printval(s->value));
	return 0;
}



@@ 481,6 482,7 @@ fsstat(Req *r)
		break;
	case Qlpaobj:
		mkfilestat(&r->d, symb->name, symb->qsymbol, 0444);
		r->d.length = strlen(printval(symb->value));
		break;
	default:
		err = Enotyet;

M symtab.c => symtab.c +1 -0
@@ 78,6 78,7 @@ symset(Symtab *s, uvlong id, void *newval)
{
	wlock(&s->lock);
	s->symbols[id]->value = newval;
	s->symbols[id]->qsymbol.vers++;
	wunlock(&s->lock);
}