Hello,<br><div class="gmail_extra"><br></div><div class="gmail_extra">Did you test this patches? I guess the answer is yes, so pls add your tests in zdtm.</div><div class="gmail_extra">zdtm is a set of unit tests for crtools. All developers executes "make test" for checking that nothing broken.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Thanks.<br><br><div class="gmail_quote">2012/11/8 Gu Zheng <span dir="ltr"><<a href="mailto:cengku.gu@huawei.com" target="_blank">cengku.gu@huawei.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
The crtools dose not handle file locks, because we can not guarantee that once we<br>
terminated the processes we've dumped and the locks got dropped, this won't affect<br>
anyone else. This can be more or less safely be achieved by assuming that all flock<br>
users live in the same container and support flocks for this case only.<br>
This patchset add a preliminary support to flock&posix file locks dump/restore,<br>
for safety, it's only used for the container.<br>
<br>
Zheng Gu (3):<br>
crtools: Add --file-locks option<br>
dump: Add support to flock&posix file locks' dump<br>
restore: Add support to flock&posix file locks' restore<br>
<br>
Makefile | 1 +<br>
cr-dump.c | 176 ++++++++++++++++++++++++++++++++++++++++++++++<br>
cr-restore.c | 6 ++<br>
cr-show.c | 5 ++<br>
crtools.c | 7 ++-<br>
file-lock.c | 92 ++++++++++++++++++++++++<br>
image.c | 1 +<br>
include/crtools.h | 3 +<br>
include/file-lock.h | 32 ++++++++<br>
include/image.h | 1 +<br>
include/protobuf.h | 1 +<br>
protobuf.c | 2 +<br>
protobuf/Makefile | 1 +<br>
protobuf/file-lock.proto | 9 +++<br>
14 files changed, 336 insertions(+), 1 deletions(-)<br>
create mode 100644 file-lock.c<br>
create mode 100644 include/file-lock.h<br>
create mode 100644 protobuf/file-lock.proto<br>
<br>
_______________________________________________<br>
CRIU mailing list<br>
<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a><br>
<a href="http://lists.openvz.org/mailman/listinfo/criu" target="_blank">http://lists.openvz.org/mailman/listinfo/criu</a><br>
</blockquote></div><br></div>