master - thin: enable resize for thin pool metadata LV
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c888c925b8d561158c3cea6d4f5ea4e173848c00 Commit: c888c925b8d561158c3cea6d4f5ea4e173848c00 Parent: 87aca628d6b477ec4f0b6dac7d4895b31253a6e1 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Jun 11 13:11:54 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Jun 11 14:07:51 2013 +0200
thin: enable resize for thin pool metadata LV
Support 'clasic' way of resizing of metadata LV. Normally we disallow to work with internal 'invisible' devices. But in this case we can make an exception and if user has some special needs how to extend thin pool metadata LV - support it.
After resize of metadata LV, the pool will be suspended and resumed, to be notified of this change.
--- tools/lvresize.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
tools/lvresize.c +2 -1
@@ -530,7 +530,8 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,return ECMD_FAILED ; } -if (!lv_is_visible (lv)) { +if (!lv_is_visible (lv) && + !lv_is_thin_pool_metadata (lv)) {log_error ("Can't resize internal logical volume %s" , lv->name);return ECMD_FAILED ; }