[SERVER-7933] Linux open() with O_NOATIME can fail Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 13/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Related
is related to SERVER-7497 refactor and rationalize mongo/util/f... Closed
Operating System: Linux
Participants:

 Description   

SERVER-7497 added the O_NOATIME flag to open() calls on Linux for files opened in read-only mode, but this generates errors for certain files:
http://buildlogs.mongodb.org/Linux%2064-bit%20DUR%20OFF/builds/1944/test/recent%20failures/sync2.js

Thu Dec 13 13:43:54.040 In File::open(), ::open for '/etc/lsb-release' failed with errno:1 Operation not permitted

The code should probably do what it did before, and only use O_NOATIME when opening files in read-write mode.



 Comments   
Comment by auto [ 13/Dec/12 ]

Author:

{u'date': u'2012-12-13T21:42:26Z', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7933 Do not use O_NOATIME with read-only file opens

Only use the Linux O_NOATIME flag when opening a file for read-write.
Branch: master
https://github.com/mongodb/mongo/commit/b640bdfb3ede7bd98535e0c344065314105c8100

Generated at Thu Feb 08 03:15:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.