1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

cov: annotate already validated lv name

This commit is contained in:
Zdenek Kabelac 2024-05-30 14:40:45 +02:00
parent 896410b393
commit 524df486b3
2 changed files with 3 additions and 0 deletions

View File

@ -1895,6 +1895,7 @@ static int _lvcreate_and_attach_writecache_single(struct cmd_context *cmd,
return ECMD_FAILED;
}
/* coverity[format_string_injection] lv name is already validated */
ret = lvconvert_writecache_attach_single(cmd, lv, handle);
if (ret == ECMD_FAILED) {
@ -1967,6 +1968,7 @@ static int _lvcreate_and_attach_cache_single(struct cmd_context *cmd,
return ECMD_FAILED;
}
/* coverity[format_string_injection] lv name is already validated */
ret = lvconvert_cachevol_attach_single(cmd, lv, handle);
if (ret == ECMD_FAILED) {

View File

@ -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);
/* coverity[format_string_injection] lv name is already validated */
ret = process_single_lv(cmd, &_historical_lv, handle);
if (handle_supplied)
_update_selection_result(handle, &whole_selected);