lkml.org 
[lkml]   [2022]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] iversion: update comments with info about atime updates
Date
On Tue, 23 Aug 2022, Jeff Layton wrote:
> So, we can refer to that and simply say:
>
> "If the function updates the mtime or ctime on the inode, then the
> i_version should be incremented. If only the atime is being updated,
> then the i_version should not be incremented. The exception to this rule
> is explicit atime updates via utimes() or similar mechanism, which
> should result in the i_version being incremented."

Is that exception needed? utimes() updates ctime.

https://man7.org/linux/man-pages/man2/utimes.2.html

doesn't say that, but

https://pubs.opengroup.org/onlinepubs/007904875/functions/utimes.html

does, as does the code.

NeilBrown

\
 
 \ /
  Last update: 2022-08-23 17:45    [W:0.084 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site