Skip to content

Commit

Permalink
Disable use of pwrite/pread under miri
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Jan 26, 2020
1 parent 63e4045 commit cb8be48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pagecache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ mod io_uring;
mod iobuf;
mod iterator;
mod pagetable;
#[cfg(all(not(unix), not(windows)))]
#[cfg(any(all(not(unix), not(windows)), miri))]
mod parallel_io_polyfill;
#[cfg(unix)]
#[cfg(all(unix, not(miri)))]
mod parallel_io_unix;
#[cfg(windows)]
#[cfg(all(windows, not(miri)))]
mod parallel_io_windows;
mod reservation;
mod segment;
Expand All @@ -24,13 +24,13 @@ mod snapshot;
use crate::*;
use std::{collections::BinaryHeap, ops::Deref};

#[cfg(all(not(unix), not(windows)))]
#[cfg(any(all(not(unix), not(windows)), miri))]
use parallel_io_polyfill::{pread_exact, pwrite_all};

#[cfg(unix)]
#[cfg(all(unix, not(miri)))]
use parallel_io_unix::{pread_exact, pwrite_all};

#[cfg(windows)]
#[cfg(all(windows, not(miri)))]
use parallel_io_windows::{pread_exact, pwrite_all};

use self::{
Expand Down

0 comments on commit cb8be48

Please sign in to comment.