diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-10-05 11:06:08 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-10-08 12:16:53 +0200 |
commit | 5b07bd3f9116ade9bb5931485eaa260f5141db6b (patch) | |
tree | b2add7b0a658be48dd0b7e7f0af16463090ee7a0 /tools | |
parent | 6e312c56adb04e709819868c6fa89f5984013a65 (diff) | |
download | lvm2-5b07bd3f9116ade9bb5931485eaa260f5141db6b.tar.gz lvm2-5b07bd3f9116ade9bb5931485eaa260f5141db6b.tar.xz lvm2-5b07bd3f9116ade9bb5931485eaa260f5141db6b.zip |
lvconvert: disable convertion of thin to mirrors
For now this convertions is not supported, thus disabled.
The only supported conversion for now is to create mirrored thin pools
from mirrored devices.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lvconvert.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 41bc585d..132a69db 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -1494,6 +1494,13 @@ static int _lvconvert_mirrors(struct cmd_context *cmd, return 0; } + /* TODO: decide what should be done here */ + if (lv_is_thin_type(lv)) { + log_error("Converting segment type for %s/%s to mirror is not yet supported.", + lv->vg->name, lv->name); + return 0; + } + /* Adjust mimage and/or log count */ if (!_lvconvert_mirrors_parse_params(cmd, lv, lp, &old_mimage_count, &old_log_count, |