From 0d0ba568d2c574df67dd8175b87296f9261a30ae Mon Sep 17 00:00:00 2001 From: Yuchen Liang Date: Mon, 14 Oct 2024 09:10:03 -0400 Subject: [PATCH] test: use direct on linux Signed-off-by: Yuchen Liang --- libs/pageserver_api/src/models.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/pageserver_api/src/models.rs b/libs/pageserver_api/src/models.rs index 3ec9cac2c3..44546c5fc8 100644 --- a/libs/pageserver_api/src/models.rs +++ b/libs/pageserver_api/src/models.rs @@ -1015,6 +1015,12 @@ pub mod virtual_file { } impl IoMode { + #[cfg(target_os = "linux")] + pub const fn preferred() -> Self { + Self::Direct + } + + #[cfg(target_os = "macos")] pub const fn preferred() -> Self { Self::Buffered }