t/zbd: avoid test case 31 failure with small devices
[fio.git] / engines / sg.c
index 24783374cba3086a72bb530a7ed854a2ca4a8a17..0bb5be4a9d64f6195a0165eee8f8e54e279f1ded 100644 (file)
@@ -1428,7 +1428,7 @@ static struct ioengine_ops ioengine = {
        .open_file      = fio_sgio_open,
        .close_file     = fio_sgio_close,
        .get_file_size  = fio_sgio_get_file_size,
-       .flags          = FIO_SYNCIO | FIO_RAWIO,
+       .flags          = FIO_SYNCIO | FIO_RAWIO | FIO_RO_NEEDS_RW_OPEN,
        .options        = options,
        .option_struct_size     = sizeof(struct sg_options)
 };