use vtfilecreate right
This commit is contained in:
parent
3082404ea9
commit
7b99eb2732
1 changed files with 2 additions and 2 deletions
|
|
@ -422,11 +422,11 @@ vacfilecreate(VacFile *f, char *elem, ulong mode, char *uid)
|
|||
ff = filealloc(f->fs);
|
||||
isdir = mode & ModeDir;
|
||||
|
||||
r = vtfilecreate(pr, pr->dsize, xxx, isdir, VtDataType);
|
||||
r = vtfilecreate(pr, pr->psize, pr->dsize, isdir ? VtDirType : VtDataType);
|
||||
if(r == nil)
|
||||
goto Err;
|
||||
if(isdir){
|
||||
mr = vtfilecreate(pr, pr->dsize, xxx, 0, r->offset);
|
||||
mr = vtfilecreate(pr, pr->psize, pr->dsize, VtDataType);
|
||||
if(mr == nil)
|
||||
goto Err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue