Tweaks to various bits.
Until I hear otherwise, Refs aren't used enough to merit their own assembly. They are now implemented with locks.
This commit is contained in:
parent
7f11104a57
commit
49588d5d90
11 changed files with 166 additions and 90 deletions
|
|
@ -306,6 +306,7 @@ fsysattach(Xfid *x, Fid *f)
|
|||
Fcall t;
|
||||
int id;
|
||||
Mntdir *m;
|
||||
char buf[128];
|
||||
|
||||
if(strcmp(x->fcall.uname, user) != 0)
|
||||
return respond(x, &t, Eperm);
|
||||
|
|
@ -327,8 +328,10 @@ fsysattach(Xfid *x, Fid *f)
|
|||
m->ref++;
|
||||
break;
|
||||
}
|
||||
if(m == nil)
|
||||
sendp(cerr, estrdup("unknown id in attach"));
|
||||
if(m == nil){
|
||||
snprint(buf, sizeof buf, "unknown id '%s' in attach", x->fcall.aname);
|
||||
sendp(cerr, estrdup(buf));
|
||||
}
|
||||
qunlock(&mnt.lk);
|
||||
return respond(x, &t, nil);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue