mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Merge pull request #2055 from resin-io/remove-direct-io
fix(cli): Remove O_DIRECT & O_EXCL
This commit is contained in:
commit
4802854cff
@ -88,10 +88,8 @@ exports.writeImage = (imagePath, drive, options, onProgress) => {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
/* eslint-disable no-bitwise */
|
/* eslint-disable no-bitwise */
|
||||||
const flags = fs.constants.O_RDWR |
|
const flags = fs.constants.O_RDWR |
|
||||||
fs.constants.O_EXCL |
|
|
||||||
fs.constants.O_NONBLOCK |
|
fs.constants.O_NONBLOCK |
|
||||||
fs.constants.O_SYNC |
|
fs.constants.O_SYNC
|
||||||
fs.constants.O_DIRECT
|
|
||||||
/* eslint-enable no-bitwise */
|
/* eslint-enable no-bitwise */
|
||||||
|
|
||||||
return fs.openAsync(driveObject.raw, flags)
|
return fs.openAsync(driveObject.raw, flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user