fio: allow 0 as compress percentage
authorPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Thu, 20 Feb 2014 13:20:07 +0000 (14:20 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 20 Feb 2014 17:14:33 +0000 (09:14 -0800)
Allow 0 as value for option compress_percentage which can be useful for
certain deduplication and compression based storage back ends.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c

index 04fb506a6e9cfffd234e0b898eee08e600cb81c2..ac101a3fe27ae7baa68ea21583f4ea41ebb2c4f7 100644 (file)
--- a/options.c
+++ b/options.c
@@ -3069,7 +3069,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                .type   = FIO_OPT_INT,
                .off1   = td_var_offset(compress_percentage),
                .maxval = 100,
-               .minval = 1,
+               .minval = 0,
                .help   = "How compressible the buffer is (approximately)",
                .interval = 5,
                .category = FIO_OPT_C_IO,