It's ok to trim to the minimum block size for RAWIO.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
}
while (buflen + io_u->offset > f->real_file_size) {
}
while (buflen + io_u->offset > f->real_file_size) {
- /*
- * if using direct/raw io, we may not be able to
- * shrink the size. so just fail it.
- */
- if (td->io_ops->flags & FIO_RAWIO)
- return 0;
-
if (buflen == td->min_bs[ddir])
return 0;
if (buflen == td->min_bs[ddir])
return 0;