New: access to file does not change access time to folders above up to /(root)
https://bugzilla.kernel.org/show_bug.cgi?id=111891
Bug ID: 111891
Summary: access to file does not change access time to folders
above up to /(root)
Product: File System
Version: 2.5
Kernel Version: 4.1.15
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
Assignee: [email protected]
Reporter: [email protected]
Regression: NoExt4 with relatime mount option.
Access to file e.g.: /home/armin/documents/abc (file) does lead into the following:
The access time of the /home directory is not changed, but should be.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
https://bugzilla.kernel.org/show_bug.cgi?id=111891
Andreas Dilger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adilger.kernelbugzilla@dilg
| |er.ca--- Comment #1 from Andreas Dilger <[email protected]> --- I'm not sure where you got the idea that the access time of all parent directories should be changed, but that isn't how POSIX works. Only the access time of the file will be modified, otherwise there would be a huge amount of overhead (e.g. maybe dozens of disk writes) for every file access.
Also, most filesystems have no way of determining the parent directories for a given file, and there may be multiple parent directories for a single file (hard links), and it wouldn't make sense to update all of those directories, so this is also impractical to implement for most filesystems.
People have enough problems with atime without making it even more expensive, and relatime is already reducing the number of cases where atime is updated significantly.
Seems I cannot close this bug (Ted, can you give me permission for this?), but it should be closed as "not a bug".
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=111891
Armin Mohring <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WILL_NOT_FIX--- Comment #2 from Armin Mohring <[email protected]> --- I thought it would be a good idea to change this behaviour.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=111891
--- Comment #3 from Armin Mohring <[email protected]> --- I think, only symbolic links should be used.
The parent directory is given by the directory tree itself. Stored in a tree.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=111891
Theodore Tso <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
CC| |[email protected]
Resolution|WILL_NOT_FIX |INVALID--- Comment #4 from Theodore Tso <[email protected]> ---
Andreas, I don't have access to change the access controls. We need to ask the bugzilla.kernel.org admins to add you to the appropriate ACL.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=111891
--- Comment #5 from Armin Mohring <[email protected]> --- The additional write amount is not so big as expected.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 111891] access to file does not change access time to folders above up to /(root)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=111891
--- Comment #6 from Armin Mohring <[email protected]> --- Just backtrace the directory tree.
Modern firesystems use trees for storing the directory information.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.