Skip to contentSkip to conversation

fio: allow 0 as compress percentage

PATCH In review [email protected] 1 participant 1 message Feb 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 9/9 fio: allow 0 as compress percentage

*Resend with hopefully non mangled patches*
References: <[email protected]>
Content-Disposition: inline; filename=buffer_compress_zero.diff

From: Peter Oberparleiter <[email protected]>

Allow 0 as value for option compress_percentage which can be useful for certain deduplication and compression based storage back ends.

---
[diffstat]

 options.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
options.c +1 -1
@@ -3072,7 +3072,7 @@ struct fio_option fio_options[FIO_MAX_OP
 		.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,