Commit Graph

4 Commits

Author SHA1 Message Date
Christian Schwarz
87e439b6de fix: adopt workspace_hack for the statvfs preload 2023-03-29 18:07:02 +02:00
Christian Schwarz
f75ee57aa6 fix: clippy 2023-03-29 18:05:57 +02:00
Christian Schwarz
d786614384 fix: statvfs_ldpreload: specify used bytes instead of avail bytes 2023-03-29 16:49:14 +02:00
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