files-ext: Allow plugin files to retry

amdgpu dmabuf CRIU requires the ability of the amdgpu plugin
to retry.

Change files_ext.c to read a response of 1 from a plugin restore
function to mean retry.

Signed-off-by: David Francis <David.Francis@amd.com>
This commit is contained in:
David Francis 2025-02-12 09:45:37 -05:00 committed by Andrei Vagin
parent 7a4ee0ae8e
commit fb02dbf685
3 changed files with 11 additions and 5 deletions

View file

@ -1614,7 +1614,7 @@ exit:
return ret;
}
int amdgpu_plugin_restore_file(int id)
int amdgpu_plugin_restore_file(int id, bool *retry_needed)
{
int ret = 0, fd;
char img_path[PATH_MAX];
@ -1625,6 +1625,8 @@ int amdgpu_plugin_restore_file(int id)
size_t img_size;
FILE *img_fp = NULL;
*retry_needed = false;
if (plugin_disabled)
return -ENOTSUP;