mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
pb: Rewrite object reading to use pb-descs
The pb_read thing is no longer a macros. This will allow to factor out objects collecting on restore. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -228,7 +228,7 @@ int collect_inotify(void)
|
||||
if (!info)
|
||||
return -1;
|
||||
|
||||
ret = pb_read_eof(image_fd, &info->ife, inotify_file_entry);
|
||||
ret = pb_read_one_eof(image_fd, &info->ife, PB_INOTIFY);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
else if (!ret)
|
||||
@@ -254,7 +254,7 @@ int collect_inotify(void)
|
||||
if (!mark)
|
||||
goto err;
|
||||
|
||||
ret = pb_read_eof(image_fd, &mark->iwe, inotify_wd_entry);
|
||||
ret = pb_read_one_eof(image_fd, &mark->iwe, PB_INOTIFY_WD);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
else if (!ret)
|
||||
|
Reference in New Issue
Block a user