mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
cov: annotate already validated lv name
This commit is contained in:
parent
896410b393
commit
524df486b3
@ -1895,6 +1895,7 @@ static int _lvcreate_and_attach_writecache_single(struct cmd_context *cmd,
|
|||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[format_string_injection] lv name is already validated */
|
||||||
ret = lvconvert_writecache_attach_single(cmd, lv, handle);
|
ret = lvconvert_writecache_attach_single(cmd, lv, handle);
|
||||||
|
|
||||||
if (ret == ECMD_FAILED) {
|
if (ret == ECMD_FAILED) {
|
||||||
@ -1967,6 +1968,7 @@ static int _lvcreate_and_attach_cache_single(struct cmd_context *cmd,
|
|||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[format_string_injection] lv name is already validated */
|
||||||
ret = lvconvert_cachevol_attach_single(cmd, lv, handle);
|
ret = lvconvert_cachevol_attach_single(cmd, lv, handle);
|
||||||
|
|
||||||
if (ret == ECMD_FAILED) {
|
if (ret == ECMD_FAILED) {
|
||||||
|
@ -3529,6 +3529,7 @@ int process_each_lv_in_vg(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
|
|
||||||
log_very_verbose("Processing historical LV %s in VG %s.", glvl->glv->historical->name, vg->name);
|
log_very_verbose("Processing historical LV %s in VG %s.", glvl->glv->historical->name, vg->name);
|
||||||
|
|
||||||
|
/* coverity[format_string_injection] lv name is already validated */
|
||||||
ret = process_single_lv(cmd, &_historical_lv, handle);
|
ret = process_single_lv(cmd, &_historical_lv, handle);
|
||||||
if (handle_supplied)
|
if (handle_supplied)
|
||||||
_update_selection_result(handle, &whole_selected);
|
_update_selection_result(handle, &whole_selected);
|
||||||
|
Loading…
Reference in New Issue
Block a user