diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-03 14:00:09 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-03 14:19:33 +0100 |
commit | 127cf4895a8531e1ffcae06ce472c9ecf3b94f2c (patch) | |
tree | 310f00e5352ca6873856bfcfee784d7d245d2a9e | |
parent | 7f35d42a99db9dedc3f2f6fb9f65873704a241ef (diff) | |
download | lvm2-127cf4895a8531e1ffcae06ce472c9ecf3b94f2c.tar.gz |
thin: allow to convert chunksize of empty pool
When pool is not used, allow to change its chunksize.
-rw-r--r-- | tools/lvconvert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c index f22c84ba8..f37a7a832 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2923,7 +2923,8 @@ static int _lvconvert_pool(struct cmd_context *cmd, /* Normally do NOT change chunk size when swapping */ if (arg_count(cmd, chunksize_ARG) && - (lp->chunk_size != seg->chunk_size)) { + (lp->chunk_size != seg->chunk_size) && + !dm_list_empty(&pool_lv->segs_using_this_lv)) { if (lp->force == PROMPT) { log_error("Chunk size can be only changed with --force. Conversion aborted."); return 0; |