mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
Fix validation of dataalignment value introduced in previous commit.
This commit is contained in:
parent
3640dc2fa3
commit
78cedddbde
@ -868,6 +868,12 @@ static struct physical_volume *_pv_create(const struct format_type *fmt,
|
||||
goto bad;
|
||||
}
|
||||
|
||||
if (pv->size < data_alignment) {
|
||||
log_error("%s: Data alignment must not exceed device size.",
|
||||
pv_dev_name(pv));
|
||||
goto bad;
|
||||
}
|
||||
|
||||
pv->fmt = fmt;
|
||||
pv->vg_name = fmt->orphan_vg_name;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user