From 34a45b0029c767827d4a9ef10cc62cf6a42d9b72 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 6 Mar 2012 09:22:02 +0000 Subject: 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. --- tools/lvcreate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/lvcreate.c') 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; } } -- cgit