Project

General

Profile

Actions

Bug #14487

closed

ctime may go backward in cephfs kernel client

Added by Zheng Yan over 8 years ago. Updated almost 8 years ago.

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 #1

Updated by Zheng Yan almost 8 years ago

  • Status changed from 7 to Resolved
Actions

Also available in: Atom PDF