Project

General

Profile

Actions

Bug #12753

closed

cls_cephfs_client encodes time_t directly

Added by Sage Weil over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

fail to build on i386.

we should never encode time_t directly.. cast to uint32_t or uint64_t so it is sized explicitly.

cls/cephfs/cls_cephfs_client.cc: In static member function 'static int ClsCephFSClient::fetch_inode_accumulate_result(librados::IoCtx&, const string&, inode_backtrace_t*, AccumulateResult*)':
cls/cephfs/cls_cephfs_client.cc:112:55: error: no matching function for call to 'decode(time_t&, ceph::buffer::list::iterator&)'
cls/cephfs/cls_cephfs_client.cc:112:55: note: candidates are:

Actions #1

Updated by Sage Weil over 8 years ago

  • Project changed from Ceph to CephFS
Actions #2

Updated by Zheng Yan over 8 years ago

  • Status changed from New to Resolved

fixed by 1213dde3d207d0d91ccecfca4dd6af1bdee0ed65

Actions

Also available in: Atom PDF