1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: check device_ids_write return code

At least 'stack' failure code path as the
function device_id_update_vg_uuid() is void.
This commit is contained in:
Zdenek Kabelac 2021-10-15 15:04:43 +02:00
parent c2be6c38d5
commit bae1083472

View File

@ -1351,8 +1351,9 @@ void device_id_update_vg_uuid(struct cmd_context *cmd, struct volume_group *vg,
}
}
if (update)
device_ids_write(cmd);
if (update &&
!device_ids_write(cmd))
stack;
out:
unlock_devices_file(cmd);
}