Merge pull request #2055 from resin-io/remove-direct-io

fix(cli): Remove O_DIRECT & O_EXCL
This commit is contained in:
Jonas Hermsmeier 2018-02-16 10:53:28 -08:00 committed by GitHub
commit 4802854cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,10 +88,8 @@ exports.writeImage = (imagePath, drive, options, onProgress) => {
}).then(() => {
/* eslint-disable no-bitwise */
const flags = fs.constants.O_RDWR |
fs.constants.O_EXCL |
fs.constants.O_NONBLOCK |
fs.constants.O_SYNC |
fs.constants.O_DIRECT
fs.constants.O_SYNC
/* eslint-enable no-bitwise */
return fs.openAsync(driveObject.raw, flags)