[CRIU] [PATCH 0/3] Add support to flock&posix file locks' dump/restore

Andrey Wagin avagin at gmail.com
Thu Nov 8 05:01:32 EST 2012


Hello,

Did you test this patches? I guess the answer is yes, so pls add your tests
in zdtm.
zdtm is a set of unit tests for crtools. All developers executes "make
test" for checking that nothing broken.

Thanks.

2012/11/8 Gu Zheng <cengku.gu at huawei.com>

>
> The crtools dose not handle file locks, because we can not guarantee that
> once we
> terminated the processes we've dumped and the locks got dropped, this
> won't affect
> anyone else. This can be more or less safely be achieved by assuming that
> all flock
> users live in the same container and support flocks for this case only.
> This patchset add a preliminary support to flock&posix file locks
> dump/restore,
> for safety, it's only used for the container.
>
> Zheng Gu (3):
>   crtools: Add --file-locks option
>   dump: Add support to flock&posix file locks' dump
>   restore: Add support to flock&posix file locks' restore
>
>  Makefile                 |    1 +
>  cr-dump.c                |  176
> ++++++++++++++++++++++++++++++++++++++++++++++
>  cr-restore.c             |    6 ++
>  cr-show.c                |    5 ++
>  crtools.c                |    7 ++-
>  file-lock.c              |   92 ++++++++++++++++++++++++
>  image.c                  |    1 +
>  include/crtools.h        |    3 +
>  include/file-lock.h      |   32 ++++++++
>  include/image.h          |    1 +
>  include/protobuf.h       |    1 +
>  protobuf.c               |    2 +
>  protobuf/Makefile        |    1 +
>  protobuf/file-lock.proto |    9 +++
>  14 files changed, 336 insertions(+), 1 deletions(-)
>  create mode 100644 file-lock.c
>  create mode 100644 include/file-lock.h
>  create mode 100644 protobuf/file-lock.proto
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> http://lists.openvz.org/mailman/listinfo/criu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121108/de3bc7ba/attachment.html>


More information about the CRIU mailing list