[CRIU] [PATCH 2/9] tmpfs: use the --one-file-system option for dumping tmpfs with help tar
Andrey Vagin
avagin at openvz.org
Tue Jul 9 07:05:49 EDT 2013
Actully for dumping tmpfs it should be remounted to somewhere else to
avoid overmounts.
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
mount.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mount.c b/mount.c
index 74e7748..fbc9f7d 100644
--- a/mount.c
+++ b/mount.c
@@ -276,6 +276,7 @@ static int tmpfs_dump(struct mount_info *pm)
ret = cr_system(-1, fd_img, -1, "tar", (char *[])
{ "tar", "--create",
"--gzip",
+ "--one-file-system",
"--check-links",
"--preserve-permissions",
"--sparse",
--
1.8.3.1
More information about the CRIU
mailing list