1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

Thin supports only thin volumes as snapshot origins

It's currently of the scope to properly solve the snapshoting
of internal thin devs so prevent non-toplevel snapshots here.
This commit is contained in:
Zdenek Kabelac 2011-11-15 17:23:51 +00:00
parent 96f7c3e2da
commit a1c4a54ada

View File

@ -4071,6 +4071,16 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
"merging snapshot is not supported");
return NULL;
}
if (lv_is_thin_type(org) && !lv_is_thin_volume(org)) {
log_error("Snapshots of thin pool %sdevices "
"are not supported.",
lv_is_thin_pool_data(org) ? "data " :
lv_is_thin_pool_metadata(org) ?
"metadata " : "");
return NULL;
}
if ((org->status & MIRROR_IMAGE) ||
(org->status & MIRROR_LOG)) {
log_error("Snapshots of mirror %ss "