Re: crushmap binary format

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

 



чт, 4 окт. 2018 г. в 17:00, Sage Weil <sage@xxxxxxxxxxxx>:
>
> On Thu, 4 Oct 2018, Maged Mokhtar wrote:
> > On 04/10/18 12:34, Vasiliy Tolstov wrote:
> > > Hi! I'm  try to understand binary format of ceph crush map. Where i
> > > can find docs/spec about binary encoding of ceph crushmap?
> > >
> >
> > look in src/crush/CrushCompiler.cc
>
> You'll find the grammar for the plaintext form in src/crush/grammar.h, but
> the encoded format is implemented in CrushWrapper.{h,cc}'s encode() and
> decode() methods.
>
> sage

Thanks , as i understand format spec does not exists? Does somebody
can send me binary crushmap file to experiment?
(i known that i can create it via installing ceph on my system, but why not?=))
Also i'm read about json format in google, but don't find it formal
spec. Ceph python module works with
{ "trees": xxxx }, some info i found in email lists and some says
about { "buckets": xxx, "rules": xxx}.
My goal - bring up pure crushmap parser (text, binary, json) to golang
and use it with go based crush.

-- 
Vasiliy Tolstov,
e-mail: v.tolstov@xxxxxxxxx




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux