1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| | % PCU-FSYNC(1) Page Cache Utilities Manual
% Eric Wong <normalperson@yhbt.net>
% Jan 26, 2010
# NAME
pcu-fsync - synchronizes a files in-core state with storage device
# SYNOPSIS
pcu-fsync [-D] [-d] [-f] FILE...
# DESCRIPTION
A command-line interface to the fsync(2) and fdatasync(2) system calls
to flush modified buffers for a given file to the underlying storage device.
This is useful for explicitly flushing files to the storage device when
using applications that fail to explicitly do so.
# OPTIONS
-D
: Flush the directory containing the file as well as the file
itself. This is useful and needed if the file was recently
rename(2)-ed or created.
-d
: Flush data (but not metadata) using fdatasync(2). This is for
special cases where applications do not require the performance
overhead of flushing metadata to the storage device.
-f
: Flush data on the filesystem containing the specified file
(or directory). This uses the syncfs(2) syscall under Linux,
and falls back to sync(2) if unavailable.
# OUTPUT
Errors only.
# ENVIRONMENT
None.
# SEE ALSO
[`fsync`(2)][1]
[`fdatasync`(2)][2]
# BUGS
None known. Email <pcu@librelist.com> if you find any.
[1]: http://kernel.org/doc/man-pages/online/pages/man2/fsync.2.html
[2]: http://kernel.org/doc/man-pages/online/pages/man2/fdatasync.2.html
|