If we target a number of bytes of IO and keep subtracting a xfer_buflen, we need to ensure the residual length is of the same size. diff --git a/io_u.h b/io_u.h index 9a423b2..2e0fd3f 100644 --- a/io_u.h +++ b/io_u.h @@ -75,7 +75,7 @@ struct io_u { struct io_piece *ipo; - unsigned int resid; + unsigned long long resid; unsigned int error; /* Regards, Jeff