@@ -179,13 +179,13 @@ test_sync(int writes_per_op)
179
179
if (writes_per_op == 1 )
180
180
printf (LABEL_FORMAT , "open_datasync 8k write"
181
181
#if PG_O_DIRECT != 0
182
- "** "
182
+ "*"
183
183
#endif
184
184
);
185
185
else
186
186
printf (LABEL_FORMAT , "2 open_datasync 8k writes"
187
187
#if PG_O_DIRECT != 0
188
- "** "
188
+ "*"
189
189
#endif
190
190
);
191
191
fflush (stdout );
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
211
211
#if PG_O_DIRECT != 0
212
212
if ((tmpfile = open (filename , O_RDWR | O_DSYNC | PG_O_DIRECT , 0 )) == -1 )
213
213
{
214
- printf (NA_FORMAT , "o_direct" , "n/a*\n" );
214
+ printf (NA_FORMAT , "o_direct" , "n/a** \n" );
215
215
fs_warning = true;
216
216
}
217
217
else
@@ -335,13 +335,13 @@ test_sync(int writes_per_op)
335
335
if (writes_per_op == 1 )
336
336
printf (LABEL_FORMAT , "open_sync 8k write"
337
337
#if PG_O_DIRECT != 0
338
- "** "
338
+ "*"
339
339
#endif
340
340
);
341
341
else
342
342
printf (LABEL_FORMAT , "2 open_sync 8k writes"
343
343
#if PG_O_DIRECT != 0
344
- "** "
344
+ "*"
345
345
#endif
346
346
);
347
347
fflush (stdout );
@@ -373,7 +373,7 @@ test_sync(int writes_per_op)
373
373
374
374
if ((tmpfile = open (filename , O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT , 0 )) == -1 )
375
375
{
376
- printf (NA_FORMAT , "o_direct" , "n/a*\n" );
376
+ printf (NA_FORMAT , "o_direct" , "n/a** \n" );
377
377
fs_warning = true;
378
378
}
379
379
else
@@ -399,16 +399,16 @@ test_sync(int writes_per_op)
399
399
printf (NA_FORMAT , "open_sync" , "n/a\n" );
400
400
#endif
401
401
402
+ #if defined(OPEN_DATASYNC_FLAG ) || defined(OPEN_SYNC_FLAG )
403
+ if (PG_O_DIRECT != 0 )
404
+ printf ("* This non-direct I/O option is not used by Postgres.\n" );
405
+ #endif
406
+
402
407
if (fs_warning )
403
408
{
404
- printf ("* This file system and its mount options do not support direct\n" );
409
+ printf ("** This file system and its mount options do not support direct\n" );
405
410
printf ("I/O, e.g. ext4 in journaled mode.\n" );
406
411
}
407
-
408
- #if defined(OPEN_DATASYNC_FLAG ) || defined(OPEN_SYNC_FLAG )
409
- if (PG_O_DIRECT != 0 )
410
- printf ("** This non-direct I/O option is not used by Postgres.\n" );
411
- #endif
412
412
}
413
413
414
414
void
0 commit comments