import { op } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { fsync } = op;
When on, the library function fsync() will be called after writing a
file. This will flush a file to disk, ensuring that it is safely
written even on filesystems which do metadata-only journaling. This
will force the harddrive to spin up on Linux systems running in laptop
mode, so it may be undesirable in some situations. Be warned that
turning this off increases the chances of data loss after a crash. On
systems without an fsync() implementation, this variable is always
off.
Also see 'swapsync' for controlling fsync() on swap files.
'fsync' also applies to writefile()
(unless a flag is used to
overrule it) and when writing undo files (see undo-persistence
).
This option cannot be set from a modeline
or in the sandbox
, for
security reasons.
(default on)