10 char Egreg[] = "the front fell off";
18 static Dir files[] = {
19 [Qregs] {.name "regs", .mode 0440},
20 [Qmem] {.name "mem", .mode 0440},
28 switch((int)r->fid->qid.path){
30 rc = pread(regsfd, r->ofcall.data, r->ifcall.count, r->ifcall.offset);
39 r->ofcall.count = vmemread(r->ofcall.data, r->ifcall.count, r->ifcall.offset);
40 if(r->ofcall.count == 0)
61 vmxsrv.tree = alloctree(uid, uid, 0770, nil);
62 for(i = 0; i < Qmax; i++)
63 createfile(vmxsrv.tree->root, files[i].name, uid, files[i].mode, nil);
64 threadpostmountsrv(&vmxsrv, srvname, nil, 0);