[CRIU] [PATCH 0/2] remove some noise from criu --version

Mike Rapoport rppt at linux.vnet.ibm.com
Thu Apr 26 18:52:16 MSK 2018


Hi,

Currently kerndat_init() runs before command line parsing and running
simple 'criu --version' command may produce something like:

Warn  (criu/kerndat.c:847): Can't load /run/criu.kdat
Error (criu/util.c:842): exited, status=3
Error (criu/util.c:842): exited, status=3
Write 4294967295 to /proc/self/loginuid failed: Operation not permittedWarn
(criu/net.c:2732): Unable to get socket network namespace
Warn  (criu/net.c:2732): Unable to get tun network namespace
Warn  (criu/sk-unix.c:213): sk unix: Unable to open a socket file:
Operation not permitted
Error (criu/net.c:3023): Unable create a network namespace: Operation not
permitted
Warn  (criu/net.c:3069): NSID isn't reported for network links
Version: 3.6
GitID: v3.6-611-g0b27d0a

Group early calls to kerndat_* and init_service_fd calls into a function
and call this function after the command line parsing is finished.

Mike Rapoport (2):
  criu: split configuration parsing into separate file
  criu: fix 'criu --version'

 criu/Makefile.crtools  |   1 +
 criu/config.c          | 204 ++++++++++++++++++++++++++++++++++++++++++++
 criu/crtools.c         | 224 +++++++------------------------------------------
 criu/include/crtools.h |   2 +
 4 files changed, 236 insertions(+), 195 deletions(-)
 create mode 100644 criu/config.c

-- 
2.7.4



More information about the CRIU mailing list