]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Refactor CINode encoding into CInodeStore
authorJohn Spray <john.spray@inktank.com>
Fri, 2 May 2014 15:09:29 +0000 (16:09 +0100)
committerJohn Spray <john.spray@inktank.com>
Sun, 18 May 2014 10:21:29 +0000 (11:21 +0100)
commit2282739b745e5a2f76044a4b963f57eaab01cdb5
tree032bf370dc92f66c5a45aef87ce602839e4a91a9
parentbf7b84c951edbc2c799f66071ca748905341416f
mds: Refactor CINode encoding into CInodeStore

CInode itself combined the on-disk format and
encode/decode logic with lots of other complex
behaviours.  This separates the simple parts
out so that they can be used by other tools that
are interested in looking at inodes outside of
a running MDS.

There is a small overhead because CInodeStore
can't decode a SnapRealm inline, so it keeps
a temporary copy of the encoded bufferlist.

Signed-off-by: John Spray <john.spray@inktank.com>
src/mds/CInode.cc
src/mds/CInode.h
src/test/encoding/types.h