Project

General

Profile

Actions

Bug #17828

open

libceph setxattr returns 0 without setting the attr

Added by Chris Holcombe over 7 years ago. Updated about 7 years ago.

Status:
Need More Info
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

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

Description

Using the jewel libcephfs python bindings I ran the following code snippet:

import rados
import cephfs
import xattr
cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
l = cephfs.LibCephFS()
l.create_with_rados(cluster)
l.init()
l.mount()
l.setxattr(path='/test-quota', name='ceph.quota.max_files', value='20', flags=xattr.XATTR_CREATE)
l.sync_fs()

I then mounted the CephFs root using ceph-fuse and found that getfattr failed to show any attributes set. I didn't see any errors bubble up through python so I'm not sure what is wrong here. Maybe I'm giving it the wrong path. setfattr works correctly through ceph-fuse. My directory test-quota here is just a top level directory in the filesystem.

Actions

Also available in: Atom PDF