[CRIU] [PATCH] kdat/net: Init kerndat even if nsid aren't supported

Dmitry Safonov 0x7f454c46 at gmail.com
Sat Jan 27 18:56:26 MSK 2018


We should continue even if kdat feature isn't supported:

[criu]# ./criu/criu dump -t `pidof pypy` --shell-job
Warn  (criu/kerndat.c:804): Can't load /run/criu.kdat
Warn  (criu/libnetlink.c:55): ERROR -95 reported by netlink
Error (criu/net.c:3042): Unable to create a veth pair: -95
Warn  (criu/net.c:3064): NSID isn't reported for network links

Cc: Andrei Vagin <avagin at virtuozzo.com>
Signed-off-by: Dmitry Safonov <0x7f454c46 at gmail.com>
---
 criu/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/net.c b/criu/net.c
index 3524585ebce0..0176873e0df5 100644
--- a/criu/net.c
+++ b/criu/net.c
@@ -3062,7 +3062,7 @@ int kerndat_link_nsid()
 
 	if (status) {
 		pr_warn("NSID isn't reported for network links\n");
-		return -1;
+		return 0;
 	}
 
 	kdat.has_link_nsid = true;
-- 
2.15.1



More information about the CRIU mailing list