All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: David Zafman <david.zafman@inktank.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Using erasure code plugins outside of an OSD
Date: Thu, 14 Aug 2014 19:23:26 +0200	[thread overview]
Message-ID: <53ECF08E.3070507@dachary.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

Hi David,

You presumably want to load a plugin, similar to what

    https://github.com/ceph/ceph/blob/firefly/src/mon/OSDMonitor.cc#L3040

does. To use it the high level is to be found in

    https://github.com/ceph/ceph/blob/master/src/osd/ECBackend.cc#L361

which relies on a thin layer of utilities

    https://github.com/ceph/ceph/blob/master/src/osd/ECUtil.cc

That creates convenience functions that you may or may not need. All plugins implement the API:

    https://github.com/ceph/ceph/blob/master/src/erasure-code/ErasureCodeInterface.h

and you may not need more than that.

Cheers

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

                 reply	other threads:[~2014-08-14 17:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53ECF08E.3070507@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=david.zafman@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.