1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Remove 2 TB LV size restriction message.

This commit is contained in:
Alasdair Kergon 2002-11-18 16:21:00 +00:00
parent c3aa104a8d
commit 50d7e96c6d

View File

@ -65,17 +65,19 @@ static int _vg_setup(struct format_instance *fid, struct volume_group *vg)
static int _lv_setup(struct format_instance *fid, struct logical_volume *lv)
{
/******** FIXME Any LV size restriction?
uint64_t max_size = UINT_MAX;
if (!*lv->lvid.s)
lvid_create(&lv->lvid, &lv->vg->id);
if (lv->size > max_size) {
char *dummy = display_size(max_size, SIZE_SHORT);
char *dummy = display_size(max_size / 2, SIZE_SHORT);
log_error("logical volumes cannot be larger than %s", dummy);
dbg_free(dummy);
return 0;
}
*/
if (!*lv->lvid.s)
lvid_create(&lv->lvid, &lv->vg->id);
return 1;
}