LVM2/tools lvresize.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-11-08 12:19:53
Modified files:
tools : lvresize.c
Log message:
Thin ensure pool table is update after resize
Always make sure table gets reloaded.
For now activate and deactivate pool volume if it's not active.
FIXME: we could do this only if we are sure some thin volume is alive.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvresize.c.diff?cvsroot=lvm2&r1=1.142&r2=1.143
tools/lvresize.c +14 -0
@@ -781,6 +781,20 @@backup (vg); +/* +* Update lvm pool metadata (drop messages) if the pool has been +* resumed and do a pool active/deactivate in other case. +* +* Note: Active thin pool can be waiting for resize. +* +* FIXME: Activate only when thin volume is active +*/ +if (lv_is_thin_pool (lv) && + !update_pool_lv (lv, !lv_is_active (lv))) { + stack; +return ECMD_FAILED ; + } +log_print ("Logical volume %s successfully resized" , lp->lv_name); if (lp->resizefs && (lp->resize == LV_EXTEND) &&