mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-23 02:05:07 +03:00
69b1e32c8a
We exclude some signatures from being wiped when using blkid wiping. These are signatures which we simply overwrite. For example, the LVM2_member signature which denotes a PV - if we call pvcreate on existing PV, we just overwrite the PV header, no need to wipe it. Previously, we counted such signatures as if they were wiped and they were counted in the final number of wiped signatures that _wipe_known_signatures_with_blkid fn returned in the "wiped" output arg. Then the code checking this output arg could be mislead that wiping happened while no wiping took place in real and we could fire some code uselessly based on this information (e.g. refreshing filters/rescanning - see also commit 6b4066585f73df7328ea16f6cb3713cd49cf2d2d).