vacfs: present qids correctly

This commit is contained in:
Russ Cox 2008-06-15 01:46:23 -04:00
parent 4395d738f4
commit fa3c8da1c0
4 changed files with 15 additions and 7 deletions

View file

@ -637,14 +637,11 @@ vacstat(VacFile *parent, VacDir *vd, uchar *p, int np)
char *ext = nil;
#endif
USED(parent);
memset(&dir, 0, sizeof(dir));
/*
* Where do path and version come from
*/
dir.qid.path = vd->qid;
dir.qid.path = vd->qid + vacfilegetqidoffset(parent);
if(vd->qidspace)
dir.qid.path += vd->qidoffset;
dir.qid.vers = vd->mcount;
dir.mode = vd->mode & 0777;
if(vd->mode & ModeAppend){