summaryrefslogtreecommitdiffstats
path: root/tests/basic/ctime/ctime-utimesat.t
Commit message (Collapse)AuthorAgeFilesLines
* ctime: Fix ctime inconsisteny with utimensatKotresh HR2019-12-101-0/+28
Problem: When touch is used to create a file, the ctime is not matching atime and mtime which ideally should match. There is a difference in nano seconds. Cause: When touch is used modify atime or mtime to current time (UTIME_NOW), the current time is taken from kernel. The ctime gets updated to current time when atime or mtime is updated. But the current time to update ctime is taken from utime xlator. Hence the difference in nano seconds. Fix: When utimesat uses UTIME_NOW, use the current time from kernel. fixes: bz#1773530 Change-Id: I9ccfa47dcd39df23396852b4216f1773c49250ce Signed-off-by: Kotresh HR <khiremat@redhat.com>