mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Limit alignment to 32bit values
to get the same behavior on 32/64 machines.
This commit is contained in:
parent
fc5c61df97
commit
1ef10bd81a
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Limit alignment to 32bit values.
|
||||||
Check for correctness of uint64 dev_size value.
|
Check for correctness of uint64 dev_size value.
|
||||||
Rename origin_only parameter to more generic flag use_layer for lv_info().
|
Rename origin_only parameter to more generic flag use_layer for lv_info().
|
||||||
Thin pools have segment fields thin_count, zero, transaction_id.
|
Thin pools have segment fields thin_count, zero, transaction_id.
|
||||||
|
@ -1438,7 +1438,7 @@ int pvcreate_params_validate(struct cmd_context *cmd,
|
|||||||
}
|
}
|
||||||
pp->data_alignment = arg_uint64_value(cmd, dataalignment_ARG, UINT64_C(0));
|
pp->data_alignment = arg_uint64_value(cmd, dataalignment_ARG, UINT64_C(0));
|
||||||
|
|
||||||
if (pp->data_alignment > ULONG_MAX) {
|
if (pp->data_alignment > UINT32_MAX) {
|
||||||
log_error("Physical volume data alignment is too big.");
|
log_error("Physical volume data alignment is too big.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1457,7 +1457,7 @@ int pvcreate_params_validate(struct cmd_context *cmd,
|
|||||||
}
|
}
|
||||||
pp->data_alignment_offset = arg_uint64_value(cmd, dataalignmentoffset_ARG, UINT64_C(0));
|
pp->data_alignment_offset = arg_uint64_value(cmd, dataalignmentoffset_ARG, UINT64_C(0));
|
||||||
|
|
||||||
if (pp->data_alignment_offset > ULONG_MAX) {
|
if (pp->data_alignment_offset > UINT32_MAX) {
|
||||||
log_error("Physical volume data alignment offset is too big.");
|
log_error("Physical volume data alignment offset is too big.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user