Project

General

Profile

Actions

Feature #387

open

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

Added by Sage Weil over 13 years ago. Updated over 9 years ago.

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

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Actions #1

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)

Actions #2

Updated by Sage Weil over 13 years ago

  • Assignee set to Pengcheng Chen
Actions #3

Updated by Sage Weil over 13 years ago

  • Target version deleted (v2.6.37)
Actions #4

Updated by Sage Weil over 13 years ago

  • Estimated time set to 2:00 h
  • Source set to 1
Actions #5

Updated by Sage Weil over 12 years ago

  • Translation missing: en.field_position deleted (440)
  • Translation missing: en.field_position set to 412
Actions #6

Updated by Sage Weil over 12 years ago

  • Translation missing: en.field_position deleted (412)
  • Translation missing: en.field_position set to 411
Actions #7

Updated by Sage Weil about 11 years ago

  • Assignee deleted (Pengcheng Chen)
Actions

Also available in: Atom PDF