Project

General

Profile

Actions

Bug #7249

closed

osd: int xattr comparison is endian-dependent

Added by Josh Durgin over 10 years ago. Updated about 9 years ago.

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

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The xattr is loaded off disk and interpreted without decoding it. librados also has no interface to set such a value, but that's a separate issue...

int ReplicatedPG::do_xattr_cmp_u64(int op, __u64 v1, bufferlist& xattr)
{
  __u64 v2;
  if (xattr.length())
    v2 = atoll(xattr.c_str());
Actions

Also available in: Atom PDF