[CRIU] [PATCH 0/3] Add support to flock&posix file locks' dump/restore
Gu Zheng
cengku.gu at huawei.com
Wed Nov 7 22:10:00 EST 2012
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
More information about the CRIU
mailing list