Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3eebb33d
Commit
3eebb33d
authored
Jan 15, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse number of stars used for test_fsync details.
parent
431605f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/tools/fsync/test_fsync.c
src/tools/fsync/test_fsync.c
+12
-12
No files found.
src/tools/fsync/test_fsync.c
View file @
3eebb33d
...
@@ -179,13 +179,13 @@ test_sync(int writes_per_op)
...
@@ -179,13 +179,13 @@ test_sync(int writes_per_op)
if
(
writes_per_op
==
1
)
if
(
writes_per_op
==
1
)
printf
(
LABEL_FORMAT
,
"open_datasync 8k write"
printf
(
LABEL_FORMAT
,
"open_datasync 8k write"
#if PG_O_DIRECT != 0
#if PG_O_DIRECT != 0
"*
*
"
"*"
#endif
#endif
);
);
else
else
printf
(
LABEL_FORMAT
,
"2 open_datasync 8k writes"
printf
(
LABEL_FORMAT
,
"2 open_datasync 8k writes"
#if PG_O_DIRECT != 0
#if PG_O_DIRECT != 0
"*
*
"
"*"
#endif
#endif
);
);
fflush
(
stdout
);
fflush
(
stdout
);
...
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
...
@@ -211,7 +211,7 @@ test_sync(int writes_per_op)
#if PG_O_DIRECT != 0
#if PG_O_DIRECT != 0
if
((
tmpfile
=
open
(
filename
,
O_RDWR
|
O_DSYNC
|
PG_O_DIRECT
,
0
))
==
-
1
)
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
;
fs_warning
=
true
;
}
}
else
else
...
@@ -335,13 +335,13 @@ test_sync(int writes_per_op)
...
@@ -335,13 +335,13 @@ test_sync(int writes_per_op)
if
(
writes_per_op
==
1
)
if
(
writes_per_op
==
1
)
printf
(
LABEL_FORMAT
,
"open_sync 8k write"
printf
(
LABEL_FORMAT
,
"open_sync 8k write"
#if PG_O_DIRECT != 0
#if PG_O_DIRECT != 0
"*
*
"
"*"
#endif
#endif
);
);
else
else
printf
(
LABEL_FORMAT
,
"2 open_sync 8k writes"
printf
(
LABEL_FORMAT
,
"2 open_sync 8k writes"
#if PG_O_DIRECT != 0
#if PG_O_DIRECT != 0
"*
*
"
"*"
#endif
#endif
);
);
fflush
(
stdout
);
fflush
(
stdout
);
...
@@ -373,7 +373,7 @@ test_sync(int writes_per_op)
...
@@ -373,7 +373,7 @@ test_sync(int writes_per_op)
if
((
tmpfile
=
open
(
filename
,
O_RDWR
|
OPEN_SYNC_FLAG
|
PG_O_DIRECT
,
0
))
==
-
1
)
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
;
fs_warning
=
true
;
}
}
else
else
...
@@ -399,16 +399,16 @@ test_sync(int writes_per_op)
...
@@ -399,16 +399,16 @@ test_sync(int writes_per_op)
printf
(
NA_FORMAT
,
"open_sync"
,
"n/a
\n
"
);
printf
(
NA_FORMAT
,
"open_sync"
,
"n/a
\n
"
);
#endif
#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
)
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
"
);
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
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment