mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: use plain unsigned types
This commit is contained in:
parent
9e79cca9e7
commit
a64239f225
@ -2292,9 +2292,9 @@ int vg_validate(struct volume_group *vg)
|
|||||||
struct str_list *sl;
|
struct str_list *sl;
|
||||||
char uuid[64] __attribute__((aligned(8)));
|
char uuid[64] __attribute__((aligned(8)));
|
||||||
int r = 1;
|
int r = 1;
|
||||||
uint32_t hidden_lv_count = 0, lv_count = 0, lv_visible_count = 0;
|
unsigned hidden_lv_count = 0, lv_count = 0, lv_visible_count = 0;
|
||||||
uint32_t pv_count = 0;
|
unsigned pv_count = 0;
|
||||||
uint32_t num_snapshots = 0;
|
unsigned num_snapshots = 0;
|
||||||
struct validate_hash vhash = { NULL };
|
struct validate_hash vhash = { NULL };
|
||||||
|
|
||||||
if (vg->alloc == ALLOC_CLING_BY_TAGS) {
|
if (vg->alloc == ALLOC_CLING_BY_TAGS) {
|
||||||
@ -2432,10 +2432,10 @@ int vg_validate(struct volume_group *vg)
|
|||||||
* all volumes = visible LVs + snapshot_cows + invisible LVs
|
* all volumes = visible LVs + snapshot_cows + invisible LVs
|
||||||
*/
|
*/
|
||||||
if (lv_count != lv_visible_count + num_snapshots + hidden_lv_count) {
|
if (lv_count != lv_visible_count + num_snapshots + hidden_lv_count) {
|
||||||
log_error(INTERNAL_ERROR "#internal LVs (%u) != #LVs (%"
|
log_error(INTERNAL_ERROR "#LVs (%u) != #visible LVs (%u) "
|
||||||
PRIu32 ") + #snapshots (%" PRIu32 ") + #internal LVs (%u) in VG %s",
|
"+ #snapshots (%u) + #internal LVs (%u) in VG %s",
|
||||||
lv_count, lv_visible_count,
|
lv_count, lv_visible_count, num_snapshots,
|
||||||
num_snapshots, hidden_lv_count, vg->name);
|
hidden_lv_count, vg->name);
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user