1. 30 Oct, 2018 38 commits
  2. 27 Oct, 2018 2 commits
    • Rodrigo Bruno's avatar
      img: Introduce O_FORCE_LOCAL flag for images · d3ecc80e
      Rodrigo Bruno authored
       criu/image-desc.c    | 4 ++--
       criu/image.c         | 4 ++--
       criu/include/image.h | 1 +
       3 files changed, 5 insertions(+), 4 deletions(-)
      
      In order to prepare for remote snapshots (possible with Image Proxy and Image
      Cache) the O_FORCE_LOCAL flag is added to force some images not to be remote
      and stay as local files in the file system.
      Signed-off-by: 's avatarRodrigo Bruno <rbruno@gsd.inesc-id.pt>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      d3ecc80e
    • Pavel Emelyanov's avatar
      lib: Add simple Go wrappers for swrk mode · 3f994bcf
      Pavel Emelyanov authored
      We'll need some docs :) bu the API is
      
      criu := MakeCriu()
      
      criu.Dump(opts, notify)
      criu.Restore(opts, notify)
      criu.PreDump(opts, notify)
      criu.StartPageServer(opts)
      
      where opts is the object from rpc.proto, Go has almost native support
      for those, so caller should
      
      - compile .proto file
      - export it and golang/protobuf/proto
      - create and initialize the CriuOpts struct
      
      and notify is an interface with callbacks that correspond to criu
      notification messages.
      
      A stupid dump/restore tool in src/test/main.go demonstrates the above.
      
      Changes since v1:
      
      * Added keep_open mode for pre-dumps. Do use it one needs
        to call criu.Prepare() right after creation and criu.Cleanup()
        right after .Dump()
      
      * Report resp.cr_errmsg string on request error.
      
      Further TODO:
      
      - docs
      - code comments
      
      travis-ci: success for libphaul (rev2)
      Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      3f994bcf