Project

General

Profile

Actions

Feature #4215

closed

mds: support setfattr on ceph.dir.layout

Added by Greg Farnum about 11 years ago. Updated almost 8 years ago.

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

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
MDS
Labels (FS):
Pull request ID:

Description

gregf@kai:~/ceph/src/mnt$ mkdir tmp1
gregf@kai:~/ceph/src/mnt$ setfattr -n ceph.dir.layout -v "stripe_unit=2097152 stripe_count=1 object_size=2097152 pool=data" tmp1/
gregf@kai:~/ceph/src/mnt$ getfattr -n ceph.dir.layout tmp1/
# file: tmp1/
ceph.dir.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304 pool=data"

Perhaps it's not the right format, despite being copied-and-pasted? But it still needs to return a failure instead of pretending to succeed. :(

This is on bobtail branch, with an in-progress layout storage change, so maybe it's part of that. But setting individual fields works fine:

gregf@kai:~/ceph/src/mnt$ setfattr -n ceph.dir.layout.stripe_unit -v "2097152" tmp1/
gregf@kai:~/ceph/src/mnt$ getfattr -n ceph.dir.layout tmp1/
# file: tmp1/
ceph.dir.layout="stripe_unit=2097152 stripe_count=1 object_size=4194304 pool=data"

Actions

Also available in: Atom PDF