mirror of https://github.com/lukechilds/node.git
Browse Source
Add O_NOATIME flag on Linux for use with `fs.open()`. PR-URL: https://github.com/nodejs/node/pull/6492 Fixes: https://github.com/nodejs/node/issues/2182 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>v6.x
committed by
Evan Lucas
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
'use strict'; |
|||
|
|||
require('../common'); |
|||
const assert = require('assert'); |
|||
|
|||
const isLinux = process.platform === 'linux'; |
|||
|
|||
const O_NOATIME = process.binding('constants').O_NOATIME; |
|||
const expected = isLinux ? 0x40000 : undefined; |
|||
|
|||
assert.strictEqual(O_NOATIME, expected); |
Loading…
Reference in new issue