[CRIU] [PATCH v5 0/4] c/r of file leases
Pavel Begunkov
asml.silence at gmail.com
Mon Oct 2 23:48:16 MSK 2017
The patchset adds full support of file leases:
- procfs parsing changes
- restoring of file leases. In case of broken leases it breaks
established lease with open syscall.
- workaround inane 'broken lease type' (always 'READ') in procfs.
- logic to support missing info about leases in proc/fd (v4.0 or older)
- zdtm tests
Pavel Begunkov (4):
locks: Add c/r of non broken leases (kernel>=v4.1)
locks: Add c/r of breaking leases (kernel>=v4.1)
locks: Add leases c/r for kernels v4.0 and older
zdtm: Add file lease tests
criu/file-lock.c | 275 +++++++++++++++++++++++++++++++++++++
criu/files.c | 3 +
criu/include/file-lock.h | 7 +
criu/proc_parse.c | 8 ++
test/zdtm/static/Makefile | 4 +
test/zdtm/static/file_lease00.c | 84 +++++++++++
test/zdtm/static/file_lease00.desc | 1 +
test/zdtm/static/file_lease01.c | 88 ++++++++++++
test/zdtm/static/file_lease01.desc | 1 +
test/zdtm/static/file_lease02.c | 145 +++++++++++++++++++
test/zdtm/static/file_lease02.desc | 1 +
test/zdtm/static/file_lease03.c | 145 +++++++++++++++++++
test/zdtm/static/file_lease03.desc | 1 +
13 files changed, 763 insertions(+)
create mode 100644 test/zdtm/static/file_lease00.c
create mode 100644 test/zdtm/static/file_lease00.desc
create mode 100644 test/zdtm/static/file_lease01.c
create mode 120000 test/zdtm/static/file_lease01.desc
create mode 100644 test/zdtm/static/file_lease02.c
create mode 120000 test/zdtm/static/file_lease02.desc
create mode 100644 test/zdtm/static/file_lease03.c
create mode 120000 test/zdtm/static/file_lease03.desc
--
2.14.1.473.g3ec7d702a8
More information about the CRIU
mailing list