mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: support lvchange for data and metadata
Support lvchange operation on stacked thin pool data and metadata volumes.
This commit is contained in:
parent
7d6a125e97
commit
6b416f837f
@ -1,5 +1,6 @@
|
||||
Version 2.02.101 -
|
||||
===================================
|
||||
Support most of lvchange operations on stacked thin pool meta/data LVs.
|
||||
Add ability to pvmove RAID, mirror, and thin volumes.
|
||||
Make lvm2-activation-generator silent unless it's in error state.
|
||||
Remove "mpath major is not dm major" msg for mpath component scan (2.02.94).
|
||||
|
@ -982,7 +982,13 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
lv_is_virtual_origin(origin = origin_from_cow(lv)))
|
||||
lv = origin;
|
||||
|
||||
if (!(lv_is_visible(lv)) && !lv_is_virtual_origin(lv)) {
|
||||
if ((lv_is_thin_pool_data(lv) || lv_is_thin_pool_metadata(lv)) &&
|
||||
!arg_count(cmd, activate_ARG) &&
|
||||
!arg_count(cmd, permission_ARG) &&
|
||||
!arg_count(cmd, setactivationskip_ARG))
|
||||
/* Rest can be changed for stacked thin pool meta/data volumes */
|
||||
;
|
||||
else if (!(lv_is_visible(lv)) && !lv_is_virtual_origin(lv)) {
|
||||
log_error("Unable to change internal LV %s directly",
|
||||
lv->name);
|
||||
return ECMD_FAILED;
|
||||
|
Loading…
Reference in New Issue
Block a user