summaryrefslogtreecommitdiff
path: root/man2/msync.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-04-21 11:31:45 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-04-21 11:35:20 +0200
commit840324c0d568399d67929293b2a5943936a14440 (patch)
treece0ca067258872db2fb26ba0d7eb5ab71e384ab8 /man2/msync.2
parent645de70f2f05ef9ba4d818557dc26e8a2d5c4f33 (diff)
msync.2: s/flushes... back to disk/flushes... back to filesystem/
As noted by Heinrich: The manpage of msync(2) says: "msync() flushes changes made to the in-core copy of a file that was mapped into memory using mmap(2) back to disk." ... "back to disk" implies that the file system is forced to actually write to the hard disk, somewhat equivalent to invoking sync(1). Is that guaranteed for all file systems? Not all file systems are necessarily disk based (e.g. davfs, tmpfs). So shouldn't we write: "... back to the file system." http://pubs.opengroup.org/onlinepubs/007904875/functions/msync.html says "... to permanent storage locations, if any," Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/msync.2')
-rw-r--r--man2/msync.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/msync.2 b/man2/msync.2
index 6ba64fa8c..baf7df9dc 100644
--- a/man2/msync.2
+++ b/man2/msync.2
@@ -34,7 +34,7 @@ msync \- synchronize a file with a memory map
flushes changes made to the in-core copy of a file that was mapped
into memory using
.BR mmap (2)
-back to disk.
+back to the filesystem.
Without use of this call
there is no guarantee that changes are written back before
.BR munmap (2)