Files
neon/libs/statvfs_ldpreload/Cargo.toml
Christian Schwarz 555ccb8c91 feat: add LD_PRELOADable library for mocking statvfs
use like so:

env RUST_LOG=pageserver=info,pageserver::disk_usage_eviction_task=debug LD_PRELOAD=$PWD/target/debug/libstatvfs_ldpreload.so  NEON_STATVFS_LDPRELOAD_CONFIG="$(echo '{}' | jq '{magic: "foobar", mock: { type: "Failure", mocked_error: "EIO" }}')" ./target/debug/neon_local pageserver start
2023-03-29 15:01:45 +02:00

16 lines
274 B
TOML

[package]
name = "statvfs_ldpreload"
version = "0.1.0"
edition.workspace = true
license.workspace = true
[lib]
crate-type = ["cdylib"]
[dependencies]
anyhow.workspace = true
libc.workspace = true
serde.workspace = true
serde_json.workspace = true
walkdir.workspace = true