main - cov: happier with defined extent_size
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6097dfb9ad2faae1c28295b35e1fba82cb4b6f8b Commit: 6097dfb9ad2faae1c28295b35e1fba82cb4b6f8b Parent: 94712e3233ac7610ed74c3207c131ec7d9a843c1 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Mar 9 19:28:24 2021 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Mar 10 01:35:02 2021 +0100
cov: happier with defined extent_size
Set extent_size with != 0 value so there is not division by 0 in any code path.
--- tools/toollib.c | 1 + 1 file changed, 1 insertion(+)
tools/toollib.c +1 -0
@@ -4006,6 +4006,7 @@ static int _process_duplicate_pvs(struct cmd_context *cmd, };struct volume_group dummy_vg = { + .extent_size =1 , .fid = &dummy_fid, .name ="" , .system_id = (char *)"" ,