summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-02-25 16:57:01 -0600
committerDavid Teigland <teigland@redhat.com>2016-02-25 17:02:18 -0600
commit88530b2ef34527eae2bacc86c765fb680f5b6b2b (patch)
treef086d0f78758d7e0f1f84ad0cc0f3299a7a5dc09
parent081359f6cd2ed8224992c91e99617ef576e01488 (diff)
downloadlvm2-88530b2ef34527eae2bacc86c765fb680f5b6b2b.tar.gz
pvcreate: fix data alignment error check
Make the data_alignment variable 64 bits so it can hold the invalid command line arg used in pvreate-usage.sh pvcreate --dataalignment 1e. On 32 bit arches, the smaller variable wouldn't hold the invalid value so the error would not trigger as expected by the test.
-rw-r--r--lib/metadata/metadata-exported.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h
index 03e8572ff..6b39de402 100644
--- a/lib/metadata/metadata-exported.h
+++ b/lib/metadata/metadata-exported.h
@@ -522,8 +522,8 @@ struct vgnameid_list {
*/
struct pv_create_args {
uint64_t size;
- unsigned long data_alignment;
- unsigned long data_alignment_offset;
+ uint64_t data_alignment;
+ uint64_t data_alignment_offset;
uint64_t label_sector;
int pvmetadatacopies;
uint64_t pvmetadatasize;