[CRIU] [PATCH 0/8] cr_errno, v2

Ruslan Kuprieiev kupruser at gmail.com
Tue Dec 2 04:29:37 PST 2014


Currently our RPC doesn't provide almost any info
about failed request. Lets add first 4 most common
errors to be reported by service. These are:
  Process with such pid already exists(Pid do not match expected)
  No process with such pid
  Bad opts
  Invalid request

v2, changed the way we trasfer cr_errno from children and fixed
    error codes

Ruslan Kuprieiev (8):
  cr-errno: initial commit
  util: set cr_errno to ESRCH if no PID dir in proc
  cr-restore: set cr_error to EEXIST if such pid already exists, v2
  cr-service: setup_opts_from_req: use single error exit point
  cr-service: set cr_errno to EBADRQC if set_opts_from_req fails
  cr-service: set cr_errno to ENOTSUP if request is invalid
  service: add cr_errno to criu_resp and send cr_errno in it
  test: rpc: cr_errno, v2

 Makefile.crtools   |   1 +
 cr-errno.c         |   1 +
 cr-restore.c       |   7 ++-
 cr-service.c       |  44 ++++++++++++------
 include/cr-errno.h |  12 +++++
 include/rst_info.h |   1 +
 protobuf/rpc.proto |   2 +
 test/rpc/errno.py  | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 test/rpc/run.sh    |   3 ++
 util.c             |   3 ++
 10 files changed, 191 insertions(+), 16 deletions(-)
 create mode 100644 cr-errno.c
 create mode 100644 include/cr-errno.h
 create mode 100755 test/rpc/errno.py

-- 
1.9.3



More information about the CRIU mailing list