-
Notifications
You must be signed in to change notification settings - Fork 7
fastpath: Restrict IO to ext4 (data=ordered) or xfs unless HIPFILE_UNSUPPORTED_FILE_SYSTEMS=true #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
fastpath: Restrict IO to ext4 (data=ordered) or xfs unless HIPFILE_UNSUPPORTED_FILE_SYSTEMS=true #238
Changes from all commits
0df0107
f32cdbb
b0a1ec3
abbeeb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,19 @@ class Environment { | |
| static constexpr const char *const STATS_LEVEL{"HIPFILE_STATS_LEVEL"}; | ||
|
|
||
| static std::optional<unsigned int> stats_level(); | ||
|
|
||
| /// @brief Allow unsupported file systems in the fastpath backend | ||
| /// | ||
| /// If enabled, the fastpath backend will allow I/O on file systems other than | ||
| /// ext4 (with ordered journaling) and xfs. If disabled (default), only supported | ||
| /// file systems are permitted. | ||
| static constexpr const char *const UNSUPPORTED_FILE_SYSTEMS{"HIPFILE_UNSUPPORTED_FILE_SYSTEMS"}; | ||
|
|
||
| /// @brief Get the value of HIPFILE_UNSUPPORTED_FILE_SYSTEMS from the environment | ||
| /// @return An optional boolean value if HIPFILE_UNSUPPORTED_FILE_SYSTEMS was set, | ||
| /// nullopt if HIPFILE_UNSUPPORTED_FILE_SYSTEMS was unset or had a value other than | ||
| /// true or false. | ||
| static std::optional<bool> unsupported_file_systems(); | ||
|
Comment on lines
+51
to
+62
|
||
| }; | ||
|
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog claims Fastpath::score() now validates the file is a regular file, but there is no regular-file check in the current implementation (and mount-info availability is not equivalent, since directories can also have mount info). Please update/remove this entry to reflect the actual behavior implemented in this PR.