]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: refactor jerasure Liberation parameters checks
authorLoic Dachary <loic-201408@dachary.org>
Tue, 9 Sep 2014 19:38:05 +0000 (21:38 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 9 Sep 2014 19:38:05 +0000 (21:38 +0200)
commitf917166157f3fce7ad0200f4f25e8466fcaedeea
tree335d6fbcb91db7af8c276ec29895a687f4d27c59
parentdf666549c5b5b0126e36177b9c6958e4dce5dc8c
erasure-code: refactor jerasure Liberation parameters checks

Create a virtual function to check for each parameter for Liberation
and its derivations Liber8tion and BlaumRoth. The code is moved around
but is unmodified.

A function reseting the parameters to sane defaults when an error
occurs is introduced. It is slightly different from the code that was
duplicated in Liberation and BlaumRoth. In both cases it now resets w.
It is a noop for Liber8tion because the user cannot modify this
parameter which is always set to the default.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/jerasure/ErasureCodeJerasure.cc
src/erasure-code/jerasure/ErasureCodeJerasure.h