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

Function flush

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

Source from the content-addressed store, hash-verified

729 },
730
731 flush(path, _fh, cb) {
732 // Linux close(2) drives this op once per close, before
733 // release. Spilling here means a process that close()s
734 // without unlink-ing sees its bytes through the VFS surface
735 // immediately, without waiting for the kernel to call release.
736 cb(flushEntry(path));
737 },
738
739 truncate(path, size, cb) {
740 truncatePath(path, size, cb);

Callers

nothing calls this directly

Calls 1

flushEntryFunction · 0.85

Tested by

no test coverage detected