[PATCH v3 5/5] utimes: Clamp the timestamps before update

2017-02-18 Thread Deepa Dinamani
POSIX.1 section for futimens, utimensat and utimes says: The file's relevant timestamp shall be set to the greatest value supported by the file system that is not greater than the specified time. Clamp the timestamps accordingly before assignment. Note that the clamp_t macro is used for clamping

[PATCH v3 5/5] utimes: Clamp the timestamps before update

2017-02-18 Thread Deepa Dinamani
POSIX.1 section for futimens, utimensat and utimes says: The file's relevant timestamp shall be set to the greatest value supported by the file system that is not greater than the specified time. Clamp the timestamps accordingly before assignment. Note that the clamp_t macro is used for clamping