Does noatime imply nodiratime?
Posted Aug 9, 2007 20:39 UTC (Thu) by
corbet (editor, #1)
In reply to:
Does noatime imply nodiratime? by tarvin
Parent article:
Once upon atime
Yep, I'm sure. When in doubt, use the source. From touch_atime() in fs/inode.c:
void touch_atime(struct vfsmount *mnt, struct dentry *dentry)
{
/* ... */
if (inode->i_flags & S_NOATIME)
return;
if (IS_NOATIME(inode))
return;
if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))
return;
So if NOATIME is set, the NODIRATIME flag is never even checked.
(
Log in to post comments)