Newly introduced findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-398): [#def1]
/usr/share/lvm2-testsuite/shell/lvconvert-mirror-split.sh:39:1: warning[SC2217]: Redirecting to 'sleep', a command that doesn't read stdin. Bad quoting, wrong command or missing xargs?
#   37|   lvcreate -aey --type mirror -m 1 -l 2 -n $lv1 $vg
#   38|   aux wait_for_sync $vg $lv1
#   39|-> sleep 2 < "$DM_DEV_DIR/mapper/${vg}-${lv1}_mimage_0" &
#   40|   sleep 2 < "$DM_DEV_DIR/mapper/${vg}-${lv1}_mlog" &
#   41|   

Error: SHELLCHECK_WARNING (CWE-398): [#def2]
/usr/share/lvm2-testsuite/shell/lvconvert-mirror-split.sh:40:1: warning[SC2217]: Redirecting to 'sleep', a command that doesn't read stdin. Bad quoting, wrong command or missing xargs?
#   38|   aux wait_for_sync $vg $lv1
#   39|   sleep 2 < "$DM_DEV_DIR/mapper/${vg}-${lv1}_mimage_0" &
#   40|-> sleep 2 < "$DM_DEV_DIR/mapper/${vg}-${lv1}_mlog" &
#   41|   
#   42|   # do not waste 'testing' time on 'retry deactivation' loops

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/share/lvm2-testsuite/shell/pvmove-open.sh:15:1: warning[SC2034]: SKIP_WITH_LVMLOCKD appears unused. Verify use (or export if used externally).
#   13|   # Check pvmove behaviour when its device are kept open
#   14|   
#   15|-> SKIP_WITH_LVMLOCKD=1
#   16|   
#   17|   . lib/inittest

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/share/lvm2-testsuite/shell/pvmove-open.sh:21:14: warning[SC2154]: vg is referenced but not assigned.
#   19|   _create_lv()
#   20|   {
#   21|-> 	lvremove -f $vg
#   22|   	lvcreate -Zn -L8 -n $lv1 $vg "$dev1"
#   23|   	rm -f debug.log_DEBUG*

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/share/lvm2-testsuite/shell/pvmove-open.sh:22:22: warning[SC2154]: lv1 is referenced but not assigned.
#   20|   {
#   21|   	lvremove -f $vg
#   22|-> 	lvcreate -Zn -L8 -n $lv1 $vg "$dev1"
#   23|   	rm -f debug.log_DEBUG*
#   24|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/share/lvm2-testsuite/shell/pvmove-open.sh:22:32: warning[SC2154]: dev1 is referenced but not assigned.
#   20|   {
#   21|   	lvremove -f $vg
#   22|-> 	lvcreate -Zn -L8 -n $lv1 $vg "$dev1"
#   23|   	rm -f debug.log_DEBUG*
#   24|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/share/lvm2-testsuite/shell/pvmove-open.sh:56:16: warning[SC2154]: dev3 is referenced but not assigned.
#   54|   aux prepare_vg 3
#   55|   
#   56|-> aux delay_dev "$dev3" 0 2 "$(get first_extent_sector "$dev3"):"
#   57|   
#   58|   # do not waste 'testing' time on 'retry deactivation' loops

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-173.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelvm2-2.03.30-3.fc42
diffbase-store-results-to/tmp/tmpleg5x368/lvm2-2.03.30-3.fc42.tar.xz
diffbase-time-created2025-04-25 14:18:32
diffbase-time-finished2025-04-25 14:22:57
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpleg5x368/lvm2-2.03.30-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpleg5x368/lvm2-2.03.30-3.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-173.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelvm2-2.03.31-1.fc43
store-results-to/tmp/tmp1z0w8fkl/lvm2-2.03.31-1.fc43.tar.xz
time-created2025-04-25 14:23:20
time-finished2025-04-25 14:27:22
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp1z0w8fkl/lvm2-2.03.31-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1z0w8fkl/lvm2-2.03.31-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9