+ switch (verify_type) {
+ case VERIFY_NONE:
+ case VERIFY_NULL:
+ len = 0;
+ break;
+ case VERIFY_MD5:
+ len = sizeof(struct vhdr_md5);
+ break;
+ case VERIFY_CRC64:
+ len = sizeof(struct vhdr_crc64);
+ break;
+ case VERIFY_CRC32:
+ len = sizeof(struct vhdr_crc32);
+ break;
+ case VERIFY_CRC16:
+ len = sizeof(struct vhdr_crc16);
+ break;
+ case VERIFY_CRC7:
+ len = sizeof(struct vhdr_crc7);
+ break;
+ case VERIFY_SHA256:
+ len = sizeof(struct vhdr_sha256);
+ break;
+ case VERIFY_SHA512:
+ len = sizeof(struct vhdr_sha512);
+ break;
+ default:
+ log_err("fio: unknown verify header!\n");
+ assert(0);
+ }
+
+ return len + sizeof(struct verify_header);