if (writes_per_op == 1)
printf(LABEL_FORMAT, "open_datasync 8k write"
#if PG_O_DIRECT != 0
- "**"
+ "*"
#endif
);
else
printf(LABEL_FORMAT, "2 open_datasync 8k writes"
#if PG_O_DIRECT != 0
- "**"
+ "*"
#endif
);
fflush(stdout);
#if PG_O_DIRECT != 0
if ((tmpfile = open(filename, O_RDWR | O_DSYNC | PG_O_DIRECT, 0)) == -1)
{
- printf(NA_FORMAT, "o_direct", "n/a*\n");
+ printf(NA_FORMAT, "o_direct", "n/a**\n");
fs_warning = true;
}
else
if (writes_per_op == 1)
printf(LABEL_FORMAT, "open_sync 8k write"
#if PG_O_DIRECT != 0
- "**"
+ "*"
#endif
);
else
printf(LABEL_FORMAT, "2 open_sync 8k writes"
#if PG_O_DIRECT != 0
- "**"
+ "*"
#endif
);
fflush(stdout);
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
{
- printf(NA_FORMAT, "o_direct", "n/a*\n");
+ printf(NA_FORMAT, "o_direct", "n/a**\n");
fs_warning = true;
}
else
printf(NA_FORMAT, "open_sync", "n/a\n");
#endif
+#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
+ if (PG_O_DIRECT != 0)
+ printf("* This non-direct I/O option is not used by Postgres.\n");
+#endif
+
if (fs_warning)
{
- printf("* This file system and its mount options do not support direct\n");
+ printf("** This file system and its mount options do not support direct\n");
printf("I/O, e.g. ext4 in journaled mode.\n");
}
-
-#if defined(OPEN_DATASYNC_FLAG) || defined(OPEN_SYNC_FLAG)
- if (PG_O_DIRECT != 0)
- printf("** This non-direct I/O option is not used by Postgres.\n");
-#endif
}
void