mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-11 09:18:25 +03:00
Thin disable pool create without activation
This commit is contained in:
parent
be88d03380
commit
815f56fd90
@ -4110,13 +4110,21 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((segtype_is_mirrored(lp->segtype) ||
|
if (!activation() &&
|
||||||
segtype_is_raid(lp->segtype) || seg_is_thin_volume(lp)) && !activation()) {
|
(seg_is_mirrored(lp) ||
|
||||||
|
seg_is_raid(lp) ||
|
||||||
|
seg_is_thin_pool(lp))) {
|
||||||
|
/*
|
||||||
|
* FIXME: For thin pool add some code to allow delayed
|
||||||
|
* initialization of empty thin pool volume.
|
||||||
|
* i.e. using some LV flag, fake message,...
|
||||||
|
* and testing for metadata pool header signature?
|
||||||
|
*/
|
||||||
log_error("Can't create %s without using "
|
log_error("Can't create %s without using "
|
||||||
"device-mapper kernel driver.",
|
"device-mapper kernel driver.",
|
||||||
segtype_is_raid(lp->segtype) ? lp->segtype->name :
|
segtype_is_raid(lp->segtype) ? lp->segtype->name :
|
||||||
segtype_is_mirrored(lp->segtype) ? "mirror" :
|
segtype_is_mirrored(lp->segtype) ? "mirror" :
|
||||||
"thin volume");
|
"thin pool volume");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user