lvm2/pvscan_2TB_limit.diff

12 lines
304 B
Diff

--- tools/pvscan.c
+++ tools/pvscan.c 2007/11/22 12:24:51
@@ -166,7 +166,7 @@
size_new += pv_size(pv);
size_total += pv_size(pv);
} else
- size_total += pv_pe_count(pv) * pv_pe_size(pv);
+ size_total += (uint64_t)pv_pe_count(pv) * pv_pe_size(pv);
}
/* find maximum pv name length */