[CRIU] [PATCH v4 0/4] file leases support

Pavel Begunkov asml.silence at gmail.com
Sat Sep 9 19:51:36 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 old kernels (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                   | 240 +++++++++++++++++++++++++++++++++++++
 criu/files.c                       |   3 +
 criu/include/file-lock.h           |   5 +
 criu/proc_parse.c                  |   6 +
 test/zdtm/static/Makefile          |   3 +
 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    | 114 ++++++++++++++++++
 test/zdtm/static/file_lease02.desc |   1 +
 11 files changed, 546 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 100644 test/zdtm/static/file_lease01.desc
 create mode 100644 test/zdtm/static/file_lease02.c
 create mode 120000 test/zdtm/static/file_lease02.desc

-- 
2.11.1



More information about the CRIU mailing list