Re: [PATCH] loadables/sync: allow fsync of individual files like GNU coreutils

2022-12-19 Thread Chet Ramey
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). Th

[PATCH] loadables/sync: allow fsync of individual files like GNU coreutils

2022-12-18 Thread Chris Webb
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). The sync command in GNU coreutils can be run