aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-01-15 18:40:10 -0500
committerBruce Momjian <bruce@momjian.us>2011-01-15 18:40:10 -0500
commit3eebb33dddcfe4ac0719b697c1ebd3694038054e (patch)
tree47d5304b055eab342430dd65ac93675f55347298 /src
parent431605f666cfb223cd615ec8c63cbdea07295550 (diff)
downloadpostgresql-3eebb33dddcfe4ac0719b697c1ebd3694038054e.tar.gz
postgresql-3eebb33dddcfe4ac0719b697c1ebd3694038054e.zip
Reverse number of stars used for test_fsync details.
Diffstat (limited to 'src')
-rw-r--r--src/tools/fsync/test_fsync.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tools/fsync/test_fsync.c b/src/tools/fsync/test_fsync.c
index 51d4d81e9ec..562da66907f 100644
--- a/src/tools/fsync/test_fsync.c
+++ b/src/tools/fsync/test_fsync.c
@@ -179,13 +179,13 @@ test_sync(int writes_per_op)
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);
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
#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
@@ -335,13 +335,13 @@ test_sync(int writes_per_op)
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);
@@ -373,7 +373,7 @@ test_sync(int writes_per_op)
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
@@ -399,16 +399,16 @@ test_sync(int writes_per_op)
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