[PATCH] Offset verification header by a user-specified distance
Offset verification header by user specified distance.
- Implementation is somewhat simple and probably not ideal but it works. The
header is just swapped with the bytes at offset after the chunk has been
filled during populate. Everything is swapped back before verify.
- Also fixes a bug where we were relying on a moving pointer for increment
size in populate_verify_io_u (which was working until this patch).
- Also cleans up a couple smalls things from the header_interval patch.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/HOWTO b/HOWTO
index 2797a58..8cb849c 100644
--- a/HOWTO
+++ b/HOWTO
@@ -603,6 +603,10 @@
fast IO where the red-black tree sorting CPU time becomes
significant.
+header_offset=siint Swap the verification header with data somewhere else
+ in the block before writing. Its swapped back before
+ verifying.
+
header_interval=siint Write the verification header at a finer granularity
than the blocksize. It will be written for chunks the
size of header_interval. blocksize should divide this