summaryrefslogtreecommitdiffstats
path: root/tools/lvcreate.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-03-06 09:22:02 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-03-06 09:22:02 +0000
commit34a45b0029c767827d4a9ef10cc62cf6a42d9b72 (patch)
tree6c7a9f96dd9fd049071d5b566aefbe00914afc0d /tools/lvcreate.c
parenta17ac481ab96d428436651d24cddba0e05880399 (diff)
downloadlvm2-34a45b0029c767827d4a9ef10cc62cf6a42d9b72.tar.gz
lvm2-34a45b0029c767827d4a9ef10cc62cf6a42d9b72.tar.xz
lvm2-34a45b0029c767827d4a9ef10cc62cf6a42d9b72.zip
Fix warn message and update man page
Fix regression in man page. The chunk size is in kilobyte units on command line input though in the source code we work with sector size unit so make it clear in the man page. Update chunksize for thin pool in man page - it's max value is 1024M == 1G. Fix warning range message to show proper max value.
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r--tools/lvcreate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index def36b97..aa2d8075 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -772,13 +772,15 @@ static int _lvcreate_params(struct lvcreate_params *lp,
return 0;
}
} else {
- lp->chunk_size = arg_uint_value(cmd, chunksize_ARG, DM_THIN_MIN_DATA_BLOCK_SIZE);
+ lp->chunk_size = arg_uint_value(cmd, chunksize_ARG,
+ DM_THIN_MIN_DATA_BLOCK_SIZE);
if ((lp->chunk_size < DM_THIN_MIN_DATA_BLOCK_SIZE) ||
(lp->chunk_size > DM_THIN_MAX_DATA_BLOCK_SIZE) ||
(lp->chunk_size & (lp->chunk_size - 1))) {
log_error("Chunk size must be a power of 2 in the "
- "range %uK to %uK", (DM_THIN_MIN_DATA_BLOCK_SIZE / 2),
- (DM_THIN_MIN_DATA_BLOCK_SIZE / 2));
+ "range %uK to %uK",
+ (DM_THIN_MIN_DATA_BLOCK_SIZE / 2),
+ (DM_THIN_MAX_DATA_BLOCK_SIZE / 2));
return 0;
}
}