int randomize_striping = 1; /* -U flag disables */
int mapped_reads = 0; /* -R flag disables it */
int fsxgoodfd = 0;
-int o_direct; /* -Z */
+int o_direct = 0; /* -Z flag */
int aio = 0;
int num_clones = 0;
return ret;
}
- fd = open(devnode, O_RDWR);
+ fd = open(devnode, O_RDWR | o_direct);
if (fd < 0) {
ret = -errno;
prt("open(%s) failed\n", devnode);
{
int ret;
+ if (o_direct)
+ return 0;
+
/*
* fsync(2) on the block device does not sync the filesystem
* mounted on top of it, but that's OK - we control the entire
{
int ret;
- if (o_direct == O_DIRECT)
+ if (o_direct)
return;
ret = ops->flush(&ctx);
break;
case 'R':
mapped_reads = 0;
+ if (!quiet)
+ fprintf(stdout, "mapped reads DISABLED\n");
break;
case 'S':
seed = getnum(optarg, &endp);