allow disabling O_DIRECT for write ops (#17751)

on really slow systems, O_DIRECT simply kills the drives
allow for a way to disable them.
This commit is contained in:
Harshavardhana
2023-07-29 15:17:56 -07:00
committed by GitHub
parent 9c0e8cd15b
commit f13cfcb83e
2 changed files with 14 additions and 11 deletions

View File

@@ -94,7 +94,7 @@ var (
},
config.HelpKV{
Key: apiDisableODirect,
Description: "set to disable O_DIRECT for reads under special conditions. NOTE: it is not recommended to disable O_DIRECT without prior testing" + defaultHelpPostfix(apiDisableODirect),
Description: "set to disable O_DIRECT for read and writes under special conditions. NOTE: it is not recommended to disable O_DIRECT without prior testing" + defaultHelpPostfix(apiDisableODirect),
Optional: true,
Type: "boolean",
},