How to reencode an object with ceph-dencoder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i want to modify an object_info_t xattr value. I grepped ceph._ and
ceph._@1 and decoded the object to json:
ceph-dencoder type object_info_t import /tmp/a decode dump_json

After modifying the json how can i encode the json to binary?

I also found this old post
https://www.spinics.net/lists/ceph-devel/msg16519.html where somebody
directly modified the binary data but i can't find the value i'm
searching for.

I want to to replace:
    "data_digest": 3180692938,

with
    "data_digest": 1138105437,

But a hex edit does not show the little endian value of 3180692938?

# printf '%x\n' 3180692938
bd9585ca

Greets,
Stefan
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux