[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] loadables/sync: allow fsync of individual files like GNU cor
From: |
Chet Ramey |
Subject: |
Re: [PATCH] loadables/sync: allow fsync of individual files like GNU coreutils |
Date: |
Mon, 19 Dec 2022 15:24:13 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
On 12/18/22 7:52 AM, Chris Webb wrote:
It's often useful to fsync an individual file from a shell script, for
example after writing a log entry which needs to be safely persisted. Doing
so with a loadable builtin is much less expensive than spawning an external
command just to call fsync(2).
Thanks for the patch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/