mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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.
This commit is contained in:
parent
87aca628d6
commit
c888c925b8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user