better offset handling
This commit is contained in:
parent
97e85ebf11
commit
33baa59ecc
1 changed files with 5 additions and 0 deletions
|
|
@ -259,6 +259,11 @@ _fsgetfid(CFsys *fs)
|
|||
fs->freefid = f->next;
|
||||
fs->ref++;
|
||||
qunlock(&fs->lk);
|
||||
f->offset = 0;
|
||||
f->mode = -1;
|
||||
f->qid.path = 0;
|
||||
f->qid.vers = 0;
|
||||
f->qid.type = 0;
|
||||
return f;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue