MCPcopy Create free account
hub / github.com/cloudflare/computer / fsync

Function fsync

packages/computerd/src/fuse/driver.ts:869–873  ·  view source on GitHub ↗
(path, _fh, _datasync, cb)

Source from the content-addressed store, hash-verified

867 },
868
869 fsync(path, _fh, _datasync, cb) {
870 // fsync(2) is the documented user-facing flush. Spill
871 // whatever's buffered so subsequent VFS reads see it.
872 cb(flushEntry(path));
873 },
874
875 fsyncdir(_path, _fh, _datasync, cb) {
876 cb(0);

Callers

nothing calls this directly

Calls 1

flushEntryFunction · 0.85

Tested by

no test coverage detected