Commit c3cff79c authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

ghost: Fixup mkreg_ghost prototype

We don't need gf there, but will need more than just mode.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 1ddcd443
......@@ -142,11 +142,11 @@ static int trim_last_parent(char *path)
return 0;
}
static int mkreg_ghost(char *path, u32 mode, struct ghost_file *gf, struct cr_img *img)
static int mkreg_ghost(char *path, GhostFileEntry *gfe, struct cr_img *img)
{
int gfd, ret;
gfd = open(path, O_WRONLY | O_CREAT | O_EXCL, mode);
gfd = open(path, O_WRONLY | O_CREAT | O_EXCL, gfe->mode);
if (gfd < 0)
return -1;
......@@ -218,7 +218,7 @@ again:
if ((ret = mkdirpat(AT_FDCWD, path, gfe->mode)) < 0)
msg = "Can't make ghost dir";
} else {
if ((ret = mkreg_ghost(path, gfe->mode, gf, img)) < 0)
if ((ret = mkreg_ghost(path, gfe, img)) < 0)
msg = "Can't create ghost regfile";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment