mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
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: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
e7b656190e
commit
5eb254b016
1
mount.c
1
mount.c
@@ -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",
|
||||||
|
Reference in New Issue
Block a user