1
0
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:
Milan Broz 2009-02-23 16:53:42 +00:00
parent 3640dc2fa3
commit 78cedddbde

View File

@ -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;