tty: Add support for multiple devpts instances

Submitted by Cyrill Gorcunov on Feb. 2, 2017, 8:02 a.m.

Details

Reviewer None
Submitted Feb. 2, 2017, 8:02 a.m.
Last Updated Feb. 10, 2017, 2:57 a.m.
Revision 1

Cover Letter

Cyrill Gorcunov (7):
  tty: Save task current terminal if present
  tty: mount -- Add mount_resolve_devpts_mnt_id helper
  tty: Save mount ids for terminals into image
  tty: Prepare tracking bitmaps for multiple devpts handling
  tty: Add support for multiple devpts instances
  test: pty05 -- Add testing of multiple devpts instance
  tty: Drop outdated comment

 criu/cr-dump.c              |   7 +
 criu/include/mount.h        |   1 +
 criu/mount.c                |  54 ++++++++
 criu/tty.c                  | 312 +++++++++++++++++++++++++++++++-------------
 images/core.proto           |   7 +
 images/tty.proto            |   6 +
 test/zdtm/static/Makefile   |   1 +
 test/zdtm/static/pty05.c    | 190 +++++++++++++++++++++++++++
 test/zdtm/static/pty05.desc |   1 +
 9 files changed, 487 insertions(+), 92 deletions(-)
 create mode 100644 test/zdtm/static/pty05.c
 create mode 100644 test/zdtm/static/pty05.desc
  

Revisions