Commit 5eb254b0 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

tmpfs: use the --one-file-system option for dumping tmpfs with help tar

Actully for dumping tmpfs it should be remounted to somewhere else to
avoid overmounts.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e7b65619
...@@ -276,6 +276,7 @@ static int tmpfs_dump(struct mount_info *pm) ...@@ -276,6 +276,7 @@ static int tmpfs_dump(struct mount_info *pm)
ret = cr_system(-1, fd_img, -1, "tar", (char *[]) ret = cr_system(-1, fd_img, -1, "tar", (char *[])
{ "tar", "--create", { "tar", "--create",
"--gzip", "--gzip",
"--one-file-system",
"--check-links", "--check-links",
"--preserve-permissions", "--preserve-permissions",
"--sparse", "--sparse",
......
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