Actions
Feature #387
openexpose directory subtree partition/replication/fragmentation via ceph.* xattrs
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Updated by Sage Weil over 13 years ago
Exposing some of the internal state will make aid in debugging. xattr.c already has a bunch of machinery for setting up virtual xattrs. Maybe start with something along these lines:
On files and dirs:
ceph.caps: 1 or more lines like
mdsid "auth"|"rep" capid# seq# issued revoking
For the issued/revoking strings, see ceph_cap_string() helper, although we probably want to create a version that takes an explicit buffer and avoids the hackery in the regular version. The auth/rep bit is determined by comparing cap == ci->i_auth_cap.
There is some other cap metadata we could expose (dirty and flushing bits, flush_tid) but those may belong in another xattr.
On dirs:
ceph.dirfrags: enumerate dirfrag tree, one per line, with whatever info we have in (see struct ceph_inode_frag)
Updated by Sage Weil over 13 years ago
- Estimated time set to 2:00 h
- Source set to 1
Updated by Sage Weil over 12 years ago
- Translation missing: en.field_position deleted (
440) - Translation missing: en.field_position set to 412
Updated by Sage Weil over 12 years ago
- Translation missing: en.field_position deleted (
412) - Translation missing: en.field_position set to 411
Actions