mirror of
git://sourceware.org/git/lvm2.git
synced 2025-12-01 08:23:49 +03:00
Require non-zero regionsize and document parameter on lvcreate man page.
This commit is contained in:
@@ -258,6 +258,11 @@ static int _read_mirror_params(struct lvcreate_params *lp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!lp->region_size) {
|
||||
log_error("Non-zero region size must be supplied.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user