fs: add O_DSYNC flag#15451
Conversation
tniessen
left a comment
There was a problem hiding this comment.
Thank you for this contribution! 😃
Note: It might be a good idea to rephrase the description of O_SYNC and O_DSYNC to emphasize their differences and to distinguish synchronous operations from synchronous API calls. This does not need to be fixed within this PR though.
No, we should not deviate from the POSIX convention here. I would probably just adapt the descriptions from the Linux manual: O_SYNC:
O_DSYNC:
|
|
@tniessen would you want to have this rephrased before landing or would that be fine sometime later on? |
|
Landed in 60460bf 🎉 Thank you for your contribution, we are looking forward to more! 😃 I marked this as semver-minor to comply with our guidelines. Partial CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/8729/ |
PR-URL: nodejs/node#15451 Fixes: nodejs/node#15425 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
|
This does not land cleanly in v8.x-staging because the new fixtures tooling has not been backport to that yet. A backport PR would be needed. |
PR-URL: nodejs#15547 Refs: nodejs#15451 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs/node#15547 Refs: nodejs/node#15451 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#15451 Fixes: nodejs#15425 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
PR-URL: nodejs#15547 Refs: nodejs#15451 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Notable Changes:
* deps:
* update npm to 5.4.2
#15600
* upgrade libuv to 1.15.0
#15745
* update V8 to 6.1.534.42
#15393
* dgram:
* support for setting dgram socket buffer size
#13623
* fs:
* add support O_DSYNC file open constant
#15451
* util:
* deprecate obj.inspect for custom inspection
#15631
* tools, build:
* there is a fancy new macOS installer
#15179
* Added new collaborator
* bmeurer - Benedikt Meurer - https://github.com/bmeurer
* kfarnung - Kyle Farnung - https://github.com/kfarnung
PR-URL: #15762
Notable Changes:
* deps:
* update npm to 5.4.2
#15600
* upgrade libuv to 1.15.0
#15745
* update V8 to 6.1.534.42
#15393
* dgram:
* support for setting dgram socket buffer size
#13623
* fs:
* add support O_DSYNC file open constant
#15451
* util:
* deprecate obj.inspect for custom inspection
#15631
* tools, build:
* there is a fancy new macOS installer
#15179
* Added new collaborator
* bmeurer - Benedikt Meurer - https://github.com/bmeurer
* kfarnung - Kyle Farnung - https://github.com/kfarnung
PR-URL: #15762
Notable Changes:
* deps:
* update npm to 5.4.2
nodejs/node#15600
* upgrade libuv to 1.15.0
nodejs/node#15745
* update V8 to 6.1.534.42
nodejs/node#15393
* dgram:
* support for setting dgram socket buffer size
nodejs/node#13623
* fs:
* add support O_DSYNC file open constant
nodejs/node#15451
* util:
* deprecate obj.inspect for custom inspection
nodejs/node#15631
* tools, build:
* there is a fancy new macOS installer
nodejs/node#15179
* Added new collaborator
* bmeurer - Benedikt Meurer - https://github.com/bmeurer
* kfarnung - Kyle Farnung - https://github.com/kfarnung
PR-URL: nodejs/node#15762

Added support for O_DSYNC file open flag. (issue #15425)
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
src