Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field

From: NeilBrown
Date: Tue Sep 13 2022 - 19:24:24 EST


On Wed, 14 Sep 2022, Jeff Layton wrote:
>
> At that point, bumping i_version both before and after makes a bit more
> sense, since it better ensures that a change will be noticed, whether
> the related read op comes before or after the statx.

How does bumping it before make any sense at all? Maybe it wouldn't
hurt much, but how does it help anyone at all?

i_version must appear to change no sooner than the change it reflects
becomes visible and no later than the request which initiated that
change is acknowledged as complete.

Why would that definition ever not be satisfactory?

NeilBrown