Commit 0612f499 authored by Pavel Emelyanov's avatar Pavel Emelyanov

parasite: Don't lseek on image files

All these files are now properly prepared by the parasite
invocation code by using open_image calls.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4436f8af
......@@ -145,9 +145,6 @@ static int dump_pages(struct parasite_dump_pages_args *args)
fd = fd_pages;
/* Start from the end of file */
sys_lseek(fd, 0, SEEK_END);
length = args->vma_entry.end - args->vma_entry.start;
nrpages = length / PAGE_SIZE;
......@@ -254,8 +251,6 @@ static int dump_sigact(parasite_status_t *st)
return fd;
}
sys_lseek(fd, MAGIC_OFFSET, SEEK_SET);
for (sig = 1; sig < SIGMAX; sig++) {
if (sig == SIGKILL || sig == SIGSTOP)
continue;
......@@ -327,8 +322,6 @@ static int dump_itimers(parasite_status_t *st)
return fd;
}
sys_lseek(fd, MAGIC_OFFSET, SEEK_SET);
ret = dump_itimer(ITIMER_REAL, fd, st);
if (ret < 0)
goto err_close;
......
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