We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5817922 commit c110ce4Copy full SHA for c110ce4
diskfs.go
@@ -158,8 +158,8 @@ func (m OpenModeOption) String() string {
158
159
var openModeOptions = map[OpenModeOption]int{
160
ReadOnly: os.O_RDONLY,
161
- ReadWriteExclusive: os.O_RDWR | os.O_EXCL,
162
- ReadWrite: os.O_RDWR,
+ ReadWriteExclusive: os.O_RDWR | os.O_EXCL | os.O_DIRECT,
+ ReadWrite: os.O_RDWR | os.O_DIRECT,
163
}
164
165
// SectorSize represents the sector size to use
0 commit comments