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:
parent
c2be6c38d5
commit
bae1083472
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user