[CRIU] [PATCH 0/8] cr_errno
Ruslan Kuprieiev
kupruser at gmail.com
Mon Dec 1 14:52:35 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
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
cr-service: setup_opts_from_req: use single error exit point
cr-service: set cr_errno to EINVAL if set_opts_from_req fails
cr-service: set cr_errno to EBADRQC if request is invalid
service: add cr_errno to criu_resp and send cr_errno in it
test: rpc: cr_errno
Makefile.crtools | 1 +
cr-errno.c | 1 +
cr-restore.c | 40 ++++++++++++++++
cr-service.c | 44 +++++++++++------
crtools.c | 1 +
include/cr-errno.h | 12 +++++
include/cr_options.h | 1 +
protobuf/rpc.proto | 2 +
test/rpc/errno.py | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++
test/rpc/run.sh | 3 ++
util.c | 3 ++
11 files changed, 226 insertions(+), 15 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