Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188565
b: refs/heads/master
c: b195bef
h: refs/heads/master
i:
  188563: 7c7c3e8
v: v3
  • Loading branch information
Sage Weil committed Oct 7, 2009
1 parent 4e6ee81 commit 391daa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa0b72e9e2900ee87886aaf8bc4c4701be1e081d
refs/heads/master: b195befd9acb514dd2afb722e63fdd880ed63217
9 changes: 8 additions & 1 deletion trunk/fs/ceph/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,18 @@ static struct ceph_vxattr_cb ceph_dir_vxattrs[] = {
static size_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val,
size_t size)
{
return snprintf(val, size,
int ret;

ret = snprintf(val, size,
"chunk_bytes=%lld\nstripe_count=%lld\nobject_size=%lld\n",
(unsigned long long)ceph_file_layout_su(ci->i_layout),
(unsigned long long)ceph_file_layout_stripe_count(ci->i_layout),
(unsigned long long)ceph_file_layout_object_size(ci->i_layout));
if (ceph_file_layout_pg_preferred(ci->i_layout))
ret += snprintf(val + ret, size, "preferred_osd=%lld\n",
(unsigned long long)ceph_file_layout_pg_preferred(
ci->i_layout));
return ret;
}

static struct ceph_vxattr_cb ceph_file_vxattrs[] = {
Expand Down

0 comments on commit 391daa3

Please sign in to comment.