Project

General

Profile

Feature #387

expose directory subtree partition/replication/fragmentation via ceph.* xattrs

Added by Sage Weil almost 11 years ago. Updated over 6 years ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:

History

#1 Updated by Sage Weil almost 11 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)

#2 Updated by Sage Weil almost 11 years ago

  • Assignee set to Pengcheng Chen

#3 Updated by Sage Weil over 10 years ago

  • Target version deleted (v2.6.37)

#4 Updated by Sage Weil over 10 years ago

  • Estimated time set to 2.00 h
  • Source set to 1

#5 Updated by Sage Weil over 9 years ago

  • translation missing: en.field_position deleted (440)
  • translation missing: en.field_position set to 412

#6 Updated by Sage Weil over 9 years ago

  • translation missing: en.field_position deleted (412)
  • translation missing: en.field_position set to 411

#7 Updated by Sage Weil over 8 years ago

  • Assignee deleted (Pengcheng Chen)

Also available in: Atom PDF