Hide Forgot
In posix_setattr, doing lstat on the path after a setting of attribute is a problem for utimes because the lstat will update the atime to a time which will be different from a possibly time supplied by the user to posix_setattr. May be we should not be doing an lstat on the file if setattr requires setting the times. Instead, we already have a pre-stat in setattr, we could just update that with the user supplied times and return the changed buf as post-attr.
This needs to be fixed as soon as NFS is merged because the changing timestamps will consistently report changed times to the NFS client resulting in cache invalidations without any real reason.
This bug report was based on my wrong understanding that lstat changes atime. This is not the case and so I am closing this bug.