mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
kdat: Don't open /run/criu.kdat if doesn't exists
When CRIU is called for a first time and the /run/criu.kdat file does not exists, the following warning is shown: Warn (criu/kerndat.c:847): Can't load /run/criu.kdat This patch is replacing this warning with a more appropriate debug message. File /run/criu.kdat does not exist Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
e54d0d26ba
commit
868de91a09
@@ -835,6 +835,9 @@ static int kerndat_try_load_cache(void)
|
|||||||
|
|
||||||
fd = open(KERNDAT_CACHE_FILE, O_RDONLY);
|
fd = open(KERNDAT_CACHE_FILE, O_RDONLY);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
if(ENOENT == errno)
|
||||||
|
pr_debug("File %s does not exist\n", KERNDAT_CACHE_FILE);
|
||||||
|
else
|
||||||
pr_warn("Can't load %s\n", KERNDAT_CACHE_FILE);
|
pr_warn("Can't load %s\n", KERNDAT_CACHE_FILE);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user