1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

cov: check for failing device_ids_read

TODO: not sure if here we should possibly exit from function.
This commit is contained in:
Zdenek Kabelac 2024-01-05 15:23:27 +01:00
parent 2770485737
commit f3f7f5db89

View File

@ -161,7 +161,8 @@ static void _print_check(struct cmd_context *cmd)
* end of this function. * end of this function.
*/ */
dm_list_splice(&use_new, &cmd->use_devices); dm_list_splice(&use_new, &cmd->use_devices);
device_ids_read(cmd); if (!device_ids_read(cmd))
log_debug("Failed to read the devices file.");
dm_list_splice(&use_old, &cmd->use_devices); dm_list_splice(&use_old, &cmd->use_devices);
dm_list_init(&cmd->use_devices); dm_list_init(&cmd->use_devices);