MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / fallocate

Function fallocate

crates/commitlog/src/repo/mod.rs:468–475  ·  view source on GitHub ↗
(_f: &mut impl FileLike, _opts: &Options)

Source from the content-addressed store, hash-verified

466/// No-op otherwise.
467#[inline]
468pub(crate) fn fallocate(_f: &mut impl FileLike, _opts: &Options) -> io::Result<()> {
469 #[cfg(feature = "fallocate")]
470 if _opts.preallocate_segments {
471 _f.fallocate(_opts.max_segment_size)?;
472 }
473
474 Ok(())
475}

Callers 5

create_segment_writerFunction · 0.70
resume_segment_writerFunction · 0.70
fallocateMethod · 0.50
create_and_metadataMethod · 0.50
create_segmentFunction · 0.50

Calls 2

OkFunction · 0.50
fallocateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…