[CRIU] [PATCH 00/14] Initial support of shared descriptor tables (v4)

Andrey Vagin avagin at openvz.org
Fri Jan 11 04:22:31 EST 2013


Currently crtools supports a case when childen are shared fd table
with parent.

v2: cosmetic fixes according with Pavel's comments
v3: don't move ids from core to pstree
v4: save fdinfo per id instead of pid
    save ids in a separate image file
v5: rework service fd name-spaces one more time

Andrey Vagin (14):
  zdtm: test shared file tables
  mntns: close_proc before clean up mounts
  util: clone service descriptors, if fd tables are shared for tasks
    (v3)
  crtools: add ability to create and close a service fd
  crtools: don't use global variables for saving service fds
  crtools: put kobj-ids into separate image file
  dump: save ids on pstree_item
  pstree: allocate fdt shared data
  files: close_old_fds before forking children
  files: pass a file descriptor on an fdinfo image instead of cr_fdset
  files: dump fdinfo per files_id instead of pid (v2)
  lock: add futex_inc_and_wake and futex_wait_while_lt
  restore: restore pocesses which share one fdtable (v4)
  zdtm.sh: add fdt_shared to the list

 cr-dump.c                          | 124 ++++++++++++++++-----------
 cr-restore.c                       |  23 ++++-
 cr-show.c                          |   5 ++
 eventfd.c                          |   4 +-
 eventpoll.c                        |   4 +-
 fifo.c                             |   4 +-
 files-reg.c                        |   4 +-
 files.c                            |  53 +++++++++---
 image.c                            |  31 +++----
 include/crtools.h                  |  17 +++-
 include/eventfd.h                  |   2 +-
 include/eventpoll.h                |   2 +-
 include/fifo.h                     |   2 +-
 include/files-reg.h                |   2 +-
 include/files.h                    |   5 +-
 include/image.h                    |   3 +
 include/inotify.h                  |   2 +-
 include/lock.h                     |  11 +++
 include/pipes.h                    |   2 +-
 include/protobuf.h                 |   1 +
 include/pstree.h                   |  10 +++
 include/signalfd.h                 |   2 +-
 include/sk-packet.h                |   2 +-
 include/sockets.h                  |   8 +-
 include/tty.h                      |   2 +-
 inotify.c                          |   4 +-
 log.c                              |  59 ++++---------
 mount.c                            |   2 +
 pipes.c                            |   4 +-
 protobuf.c                         |   1 +
 protobuf/inventory.proto           |   1 +
 pstree.c                           |  49 ++++++++++-
 signalfd.c                         |   4 +-
 sk-inet.c                          |   8 +-
 sk-packet.c                        |   4 +-
 sk-unix.c                          |   4 +-
 sockets.c                          |  10 +--
 test/zdtm.sh                       |   1 +
 test/zdtm/live/static/Makefile     |   1 +
 test/zdtm/live/static/fdt_shared.c | 170 +++++++++++++++++++++++++++++++++++++
 tty.c                              |  12 +--
 util.c                             | 113 +++++++++++++++++-------
 42 files changed, 567 insertions(+), 205 deletions(-)
 create mode 100644 test/zdtm/live/static/fdt_shared.c

--
1.7.11.7



More information about the CRIU mailing list