[CRIU] [PATCH 0/3 v2] tty: Implemet c/r for queued data on paired PTYs

Andrey Vagin avagin at virtuozzo.com
Thu Apr 14 16:27:38 PDT 2016


[root at fc22-vm criu]# ./crit/crit show
test/dump/zdtm/static/pty00/55/1/tty-data.img 
Traceback (most recent call last):
  File "./crit/crit", line 275, in <module>
    main()
  File "./crit/crit", line 272, in main
    opts["func"](opts)
  File "./crit/crit", line 28, in decode
    img = pycriu.images.load(inf(opts), opts['pretty'])
  File "/root/git/criu/crit/pycriu/images/images.py", line 423, in load
    m, handler = __rhandler(f)
  File "/root/git/criu/crit/pycriu/images/images.py", line 411, in
__rhandler
    raise Exception("No handler found for image with magic " + m)
Exception: No handler found for image with magic TTY_DATA


On Wed, Apr 13, 2016 at 10:25:41AM +0300, Cyrill Gorcunov wrote:
> v2:
>  - fix travis complains
>  - don't fail if no queued data present on peers
> 
> Cyrill Gorcunov (3):
>   tty: protobuf -- Add tty data image format
>   tty: Write unread pty buffers on post dump stage
>   tty: Restore unread data from the image
> 
>  criu/cr-dump.c               |   2 +
>  criu/cr-restore.c            |   1 +
>  criu/image-desc.c            |   1 +
>  criu/include/image-desc.h    |   1 +
>  criu/include/magic.h         |   1 +
>  criu/include/protobuf-desc.h |   1 +
>  criu/include/tty.h           |   2 +
>  criu/tty.c                   | 232 ++++++++++++++++++++++++++++++++++++++++++-
>  images/tty.proto             |   5 +
>  9 files changed, 244 insertions(+), 2 deletions(-)
> 
> -- 
> 2.5.5
> 


More information about the CRIU mailing list