Commit e3afdd0f authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

tmpfs: replace all short tar options on long analogs

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 93de6692
...@@ -281,10 +281,13 @@ static int tmpfs_dump(struct mount_info *pm) ...@@ -281,10 +281,13 @@ static int tmpfs_dump(struct mount_info *pm)
snprintf(tmpfs_path, sizeof(tmpfs_path), snprintf(tmpfs_path, sizeof(tmpfs_path),
"/proc/self/fd/%d", fd); "/proc/self/fd/%d", fd);
execlp("tar", "tar", "-czlp", execlp("tar", "tar", "--create",
"--gzip",
"--check-links",
"--preserve-permissions",
"--sparse", "--sparse",
"--numeric-owner", "--numeric-owner",
"-C", tmpfs_path, ".", NULL); "--directory", tmpfs_path, ".", NULL);
pr_perror("exec failed"); pr_perror("exec failed");
exit(1); exit(1);
} }
...@@ -340,7 +343,8 @@ static int tmpfs_restore(struct mount_info *pm) ...@@ -340,7 +343,8 @@ static int tmpfs_restore(struct mount_info *pm)
} }
close(fd_img); close(fd_img);
execlp("tar", "tar", "-xz", "-C", pm->mountpoint, NULL); execlp("tar", "tar", "--extract", "--gzip",
"--directory", pm->mountpoint, NULL);
pr_perror("exec failed"); pr_perror("exec failed");
exit(1); exit(1);
} }
......
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