Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2aead commit f9bb944Copy full SHA for f9bb944
contrib/pg_test_fsync/pg_test_fsync.c
@@ -369,6 +369,12 @@ test_sync(int writes_per_op)
369
{
370
for (writes = 0; writes < writes_per_op; writes++)
371
if (write(tmpfile, buf, XLOG_BLCKSZ) != XLOG_BLCKSZ)
372
+ /*
373
+ * This can generate write failures if the filesystem
374
+ * has a large block size, e.g. 4k, and there is no
375
+ * support for O_DIRECT writes smaller than the
376
+ * file system block size, e.g. XFS.
377
+ */
378
die("write failed");
379
if (lseek(tmpfile, 0, SEEK_SET) == -1)
380
die("seek failed");
0 commit comments