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

cov: add internal error for impossible code path

This commit is contained in:
Zdenek Kabelac 2016-12-09 22:55:25 +01:00
parent 794093722c
commit b8c729efd0

View File

@ -533,6 +533,11 @@ static int _vgchange_locktype(struct cmd_context *cmd,
struct logical_volume *lv;
int lv_lock_count = 0;
if (!lock_type) {
log_error(INTERNAL_ERROR "No locktype_ARG.");
return 0;
}
/*
* This is a special/forced exception to change the lock type to none.
* It's needed for recovery cases and skips the normal steps of undoing