-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(torture): integrate with trickfs
and as the first thing to test, just toggle on the ENOSPC from run to run.
- Loading branch information
Showing
8 changed files
with
171 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// A wrapper needed to make it compile on non-Linux platforms. | ||
|
||
cfg_if::cfg_if! { | ||
if #[cfg(target_os = "linux")] { | ||
pub use trickfs::TrickHandle; | ||
|
||
pub fn is_supported() -> bool { | ||
true | ||
} | ||
} else { | ||
pub struct TrickHandle; | ||
|
||
impl TrickHandle { | ||
pub fn set_trigger_enospc(&self, enabled: bool) { | ||
let _ = enabled; | ||
unimplemented!("TrickHandle::set_trigger_enospc"); | ||
} | ||
|
||
pub fn unmount_and_join(self) { | ||
} | ||
} | ||
|
||
pub fn is_supported() -> bool { | ||
false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters