Actions
Bug #14487
closedctime may go backward in cephfs kernel client
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
In cephfs code, we use CURRENT_TIME directly to get timestamp. But in setattr() case, Timestamp for ctime are truncated to lower granularity by VFS. If setattr() is called immediately after assigning CURRENT_TIME to ctime, CTime can go backward.
fixed by https://github.com/ceph/ceph-client/commit/702931e8139f23fd800eaba76d533af66c354c76
Actions