about summary refs log tree commit homepage
path: root/pcu-fsync.1.txt
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-11-15 03:42:50 +0000
committerEric Wong <normalperson@yhbt.net>2012-11-15 04:05:53 +0000
commite11a55dee1f5ad36bfb6f5a9b2484ef63522df41 (patch)
tree880893a4d9471490910de994d7eebb733a51fcac /pcu-fsync.1.txt
parent1567a0746ca0083fe43c95a725a69228929ff9a3 (diff)
downloadpcu-e11a55dee1f5ad36bfb6f5a9b2484ef63522df41.tar.gz
pcu-fsync: add support for syncfs() on Linux (-f flag)
Sometimes it is useful to just commit a single filesystem.
This transparently falls back to using sync(2) if syncfs(2)
is not available.
Diffstat (limited to 'pcu-fsync.1.txt')
-rw-r--r--pcu-fsync.1.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcu-fsync.1.txt b/pcu-fsync.1.txt
index 958f0d3..3cafe08 100644
--- a/pcu-fsync.1.txt
+++ b/pcu-fsync.1.txt
@@ -6,7 +6,7 @@
 pcu-fsync - synchronizes a files in-core state with storage device
 
 # SYNOPSIS
-pcu-fsync [-D] [-d] FILE...
+pcu-fsync [-D] [-d] [-f] FILE...
 
 # DESCRIPTION
 A command-line interface to the fsync(2) and fdatasync(2) system calls
@@ -25,6 +25,11 @@ using applications that fail to explicitly do so.
     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.