On 11/02/2019 18:52, Yan, Zheng wrote:
how about directly reading backtrace, something equivalent to:

rados -p cephfs1_data getxattr xxxxxxx.00000000 parent >/tmp/parent
ceph-dencoder import /tmp/parent type inode_backtrace_t decode dump_json

Where xxxxxxx is just the hex inode from stat(), right. (I only just realized this :-))

Are there Python bindings for what ceph-dencoder does, or at least a C API? I could shell out to ceph-dencoder but I imagine that won't be too great for performance.

--
Hector Martin (hec...@marcansoft.com)
Public Key: https://mrcn.st/pub
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to