[CRIU] [PATCH 0/9] epoll: Add support for duped targets

Cyrill Gorcunov gorcunov at gmail.com
Wed Jun 20 15:01:34 MSK 2018


We need to support a case where file has been added into
epoll, then duped into some other number, and finally
the former one is closed. So that epoll fdinfo will
print no longer existing fd number (in this series
we will find which new file is matching the target).

Cyrill Gorcunov (9):
  kcmp: Cleanup sources
  kcmp: Beautify kcmp-ids.h
  kcmp: Drop empty line at EOF
  kcmp: Add epoll definitions
  epoll: kdat -- Check if we have KCMP_EPOLL_TFD support
  epoll: Pass drained fds to dump_one_file
  epoll: Use real file transferred for target fds check
  epoll: Use kcmp to find proper target file
  test: eventfs00 -- Extend to test duped fd

 criu/eventpoll.c             | 119 ++++++++++++++++++++++++++++++++++++++++---
 criu/files.c                 |   8 +--
 criu/include/files.h         |   2 +
 criu/include/kcmp-ids.h      |  29 ++++++-----
 criu/include/kcmp.h          |  10 ++++
 criu/include/kerndat.h       |   1 +
 criu/kcmp-ids.c              |  14 +++--
 criu/kerndat.c               |  48 +++++++++++++++++
 test/zdtm/static/eventfs00.c |  23 +++++++--
 9 files changed, 223 insertions(+), 31 deletions(-)

-- 
2.14.4



More information about the CRIU mailing list