Skip to content

Commit

Permalink
doc: fix syntax on code snippets in cephfs/multimds
Browse files Browse the repository at this point in the history
Signed-off-by: John Spray <[email protected]>
  • Loading branch information
John Spray committed Jun 5, 2017
1 parent 3134fbb commit f76208c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/cephfs/multimds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ extended attribute of directories. The name of this extended attribute is
``ceph.dir.pin``. Users can set this attribute using standard commands:

::

setfattr -n ceph.dir.pin -v 2 path/to/dir

The value of the extended attribute is the rank to assign the directory subtree
Expand All @@ -133,9 +134,11 @@ children. However, the parents pin can be overriden by setting the child
directory's export pin. For example:

::

mkdir -p a/b
# "a" and "a/b" both start without an export pin set
setfattr -n ceph.dir.pin -v 1 a/
# a and b are now pinned to rank 1
setfattr -n ceph.dir.pin -v 0 a/b
# a/b is now pinned to rank 0 and a/ and the rest of its children are still pinned to rank 1

0 comments on commit f76208c

Please sign in to comment.