]> sourceware.org Git - lvm2.git/commitdiff
thin: chunk_size check already part of get_profilable_pool_params fn
authorPeter Rajnoha <prajnoha@redhat.com>
Tue, 6 Aug 2013 09:46:48 +0000 (11:46 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 6 Aug 2013 09:46:48 +0000 (11:46 +0200)
tools/toollib.c

index 7944d23474fd10eaf8d77b6527da6135115801ee..befd3b8de125dd542eba1439693658042c220206 100644 (file)
@@ -1577,14 +1577,6 @@ int get_pool_params(struct cmd_context *cmd,
                                           chunk_size, discards, zero))
                return_0;
 
-       if ((*chunk_size < DM_THIN_MIN_DATA_BLOCK_SIZE) ||
-           (*chunk_size > DM_THIN_MAX_DATA_BLOCK_SIZE)) {
-               log_error("Chunk size must be in the range %s to %s.",
-                         display_size(cmd, DM_THIN_MIN_DATA_BLOCK_SIZE),
-                         display_size(cmd, DM_THIN_MAX_DATA_BLOCK_SIZE));
-               return 0;
-       }
-
        if (arg_count(cmd, poolmetadatasize_ARG)) {
                if (arg_sign_value(cmd, poolmetadatasize_ARG, SIGN_NONE) == SIGN_MINUS) {
                        log_error("Negative pool metadata size is invalid.");
This page took 0.041019 seconds and 5 git commands to generate.