mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
This patch adds two test plugins to verify that CRIU plugins listed in the inventory image are enabled, while those that are not listed can be disabled. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
17 lines
448 B
C
17 lines
448 B
C
#include "criu-plugin.h"
|
|
#include "image.h"
|
|
|
|
int inventory_test_disabled_plugin_init(int stage)
|
|
{
|
|
if (stage == CR_PLUGIN_STAGE__RESTORE)
|
|
return check_and_remove_inventory_plugin(CR_PLUGIN_DESC.name, strlen(CR_PLUGIN_DESC.name));
|
|
|
|
return 0;
|
|
}
|
|
|
|
void inventory_test_disabled_plugin_fini(int stage, int ret)
|
|
{
|
|
return;
|
|
}
|
|
|
|
CR_PLUGIN_REGISTER("inventory_test_disabled_plugin", inventory_test_disabled_plugin_init, inventory_test_disabled_plugin_fini) |