diff --git a/doc/api/fs.md b/doc/api/fs.md index fc511bf7fe5585..ec99f3dd7df4a6 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2867,12 +2867,13 @@ The following constants are meant for use with `fs.open()`. O_SYNC - Flag indicating that the file is opened for synchronous I/O. + Flag indicating that the file is opened for synchronized I/O with write + operations waiting for file integrity. O_DSYNC - Flag indicating that the file is opened for synchronous I/O - with write operations waiting for data integrity. + Flag indicating that the file is opened for synchronized I/O with write + operations waiting for data integrity. O_SYMLINK diff --git a/test/parallel/test-fs-open-flags.js b/test/parallel/test-fs-open-flags.js index e4bc8610998eb6..d2be078812f351 100644 --- a/test/parallel/test-fs-open-flags.js +++ b/test/parallel/test-fs-open-flags.js @@ -79,12 +79,10 @@ assert.throws( /^Error: Unknown file open flag: null$/ ); -if (common.isLinux === true) { +if (common.isLinux) { const file = `${__dirname}/../fixtures/a.js`; - fs.open(file, O_DSYNC, common.mustCall(function(err, fd) { - assert.ifError(err); - })); + fs.open(file, O_DSYNC, common.mustCall(assert.ifError)); } function escapeRegExp(string) {