[CRIU] [PATCH 2/9] tmpfs: use the --one-file-system option for dumping tmpfs with help tar

Pavel Emelyanov xemul at parallels.com
Tue Jul 9 12:33:42 EDT 2013


On 07/09/2013 03:05 PM, Andrey Vagin wrote:
> 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",
> 


Applied


More information about the CRIU mailing list