[CRIU] Re: [PATCH cr 2/2] mount: add support of tmpfs (v3)

Andrey Wagin avagin at gmail.com
Thu Aug 9 16:25:44 EDT 2012


2012/8/9 Pavel Emelyanov <xemul at parallels.com>:
> On 08/09/2012 05:36 PM, Andrey Vagin wrote:
>>
>> tar is used for dumping content of tmpfs
>>
>> v2: Fail if if something is mounted on top of tmpfs
>> v3: adapt for current logic
>>
>> Signed-off-by: Andrey Vagin <avagin at openvz.org>
>> ---
>>  image.c                             |    1 +
>>  include/crtools.h                   |    2 +
>>  include/image.h                     |    1 +
>>  mount.c                             |  139 +++++++++++++++++++++++++++++++++++
>>  test/zdtm/live/static/mountpoints.c |   12 +++-
>>  5 files changed, 154 insertions(+), 1 deletions(-)
>>
>
> Both applied. One question:
>
>> +             execlp("tar", "tar", "-czlp",
>> +                     "--sparse",
>> +                     "--numeric-owner",
>> +                     "-C", tmpfs_path, ".", NULL);
>
> You call "tar -czlp --sparse --numeric-owner -C /proc/self/fd/<xxx> ."
> What is this last dot for?

It says to dump all files from /proc/self/fd/<xxx>

>
>
>
> Thanks,
> Pavel


More information about the CRIU mailing list