First draft of new "--sync" option.

This commit is contained in:
Andrew Wood
2023-07-26 22:17:00 +01:00
parent caf7d6ff18
commit 6cff3c1c2a
15 changed files with 123 additions and 52 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
0.0.20230725-UNRELEASED
0.0.20230726-UNRELEASED
* feature: new "`--sync`" option to flush cache to disk after every write (related to [GH#6](https://github.com/a-j-wood/pv/issues/6), to improve accuracy when writing to slow disks)
* fix: correct byte prefix size to 2 spaces in rate display, so progress display size remains constant at low transfer rates
* cleanup: rewrote `configure.in` as per suggestions in newer "`autoconf`" manuals
* cleanup: replaced `header.in` with one generated by "`autoheader`", moving custom logic to a separate header file "`config-aux.h`"
+1 -1
View File
@@ -1 +1 @@
0.0.20230725-UNRELEASED
0.0.20230726-UNRELEASED
+7
View File
@@ -395,6 +395,13 @@ If a size was specified with
stop transferring data once that many bytes have been written, instead of
continuing to the end of input.
.TP
.B \-Y, \-\-sync
After every write operation, synchronise the buffer caches to disk - see
.BR fdatasync (2).
This has no effect when the output is a pipe. Using
.B \-Y
may improve the accuracy of the progress bar when writing to a slow disk.
.TP
.B \-d PID[:FD], \-\-watchfd PID[:FD]
Instead of transferring data, watch file descriptor
.B FD