The following changes since commit c2cb68696255a8fda93043a1f2219b60af614549: client: exit if no jobs were sent and client is idle (2012-02-23 20:56:12 +0100) are available in the git repository at: git://git.kernel.dk/fio.git master Jens Axboe (2): Fix verify Fio 2.0.4 fio_version.h | 2 +- verify.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- Diff of recent changes: diff --git a/fio_version.h b/fio_version.h index c6783d7..0592d23 100644 --- a/fio_version.h +++ b/fio_version.h @@ -3,6 +3,6 @@ #define FIO_MAJOR 2 #define FIO_MINOR 0 -#define FIO_PATCH 3 +#define FIO_PATCH 4 #endif diff --git a/verify.c b/verify.c index 6621966..0a504de 100644 --- a/verify.c +++ b/verify.c @@ -654,7 +654,7 @@ static int verify_header(struct verify_header *hdr) if (hdr->magic != FIO_HDR_MAGIC) return 0; - crc = crc32c(p, sizeof(*hdr) - sizeof(hdr->crc32)); + crc = crc32c(p, offsetof(struct verify_header, crc32)); if (crc == hdr->crc32) return 1; @@ -859,7 +859,7 @@ static void populate_hdr(struct thread_data *td, struct io_u *io_u, hdr->verify_type = td->o.verify; hdr->len = header_len; hdr->rand_seed = io_u->rand_seed; - hdr->crc32 = crc32c(p, sizeof(*hdr) - sizeof(hdr->crc32)); + hdr->crc32 = crc32c(p, offsetof(struct verify_header, crc32)); data_len = header_len - hdr_size(hdr); -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html