better offset handling
This commit is contained in:
parent
97e85ebf11
commit
33baa59ecc
@ -259,6 +259,11 @@ _fsgetfid(CFsys *fs)
|
|||||||
fs->freefid = f->next;
|
fs->freefid = f->next;
|
||||||
fs->ref++;
|
fs->ref++;
|
||||||
qunlock(&fs->lk);
|
qunlock(&fs->lk);
|
||||||
|
f->offset = 0;
|
||||||
|
f->mode = -1;
|
||||||
|
f->qid.path = 0;
|
||||||
|
f->qid.vers = 0;
|
||||||
|
f->qid.type = 0;
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user