mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
2770485737
commit
f3f7f5db89
@ -161,7 +161,8 @@ static void _print_check(struct cmd_context *cmd)
|
||||
* end of this function.
|
||||
*/
|
||||
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_init(&cmd->use_devices);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user