summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-08-20 15:49:40 +0530
committerAmar Tumballi <amarts@gmail.com>2019-08-22 05:35:15 +0000
commitd14d0749340d9cb1ef6fc4b35f2fb3015ed0339d (patch)
tree09f271f3ebf35b52388985c8ef4dec1552cce173 /xlators/storage
parent8b9b8abd4878d3116dda1c7d7b9736cda09691b6 (diff)
ctime: Fix incorrect realtime passed to frame->root->ctime
On systems that don't support "timespec_get"(e.g., centos6), it was using "clock_gettime" with "CLOCK_MONOTONIC" to get unix epoch time which is incorrect. This patch introduces "timespec_now_realtime" which uses "clock_gettime" with "CLOCK_REALTIME" which fixes the issue. Change-Id: I57be35ce442d7e05319e82112b687eb4f28d7612 Signed-off-by: Kotresh HR <khiremat@redhat.com> fixes: bz#1743652
Diffstat (limited to 'xlators/storage')
0 files changed, 0 insertions, 0 deletions