]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-dencoder: simplify decoding/encoding cephfs inode 17178/head
authorYan, Zheng <zyan@redhat.com>
Wed, 23 Aug 2017 04:13:27 +0000 (12:13 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 23 Aug 2017 04:19:14 +0000 (12:19 +0800)
commit0b802159615cec004ca026da9a34226eb039baba
tree0252c95efdb07254a9d3787ae619b974ba14d3d4
parente5947ee88a1265a97031c0452490a39ffbf18e86
ceph-dencoder: simplify decoding/encoding cephfs inode

With this patch, we can dump inode embeded in dirfrag by:

rados -p cephfs_metadata getomapval 1.00000000 test_head /tmp/inode
ceph-dencoder type InodeStoreBare skip 9 import /tmp/inode decode dump_json

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h
src/test/encoding/types.h