Hello,

OK i missed the reverse Order of the little endian value.

Now it worked.

Greets,
Stefan

Am 08.08.2017 um 08:22 schrieb Stefan Priebe - Profihost AG:
> 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@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to