LVM2/lib/metadata lv_manip.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-11-15 17:23:51
Modified files:
lib/metadata : lv_manip.c
Log message:
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.
lib/metadata/lv_manip.c +10 -0
@@ -4071,6 +4071,16 @@ "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 "