]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: preload LRC plugin
authorLoic Dachary <loic-201408@dachary.org>
Fri, 29 Aug 2014 21:25:34 +0000 (23:25 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Sat, 30 Aug 2014 00:12:47 +0000 (02:12 +0200)
Add LRC to the list of erasure code plugins preloaded by default.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/common/config_opts.h
src/test/erasure-code/test-erasure-code.sh

index e344fc17a7ce66feb2a49805c7cc6c461a9e62b8..008c89be77d3528c9a363915ca80bae40a2f7bf5 100644 (file)
@@ -454,6 +454,7 @@ OPTION(osd_pool_default_erasure_code_profile,
        ) // default properties of osd pool create
 OPTION(osd_erasure_code_plugins, OPT_STR,
        "jerasure"
+       " lrc"
 #ifdef HAVE_BETTER_YASM_ELF64
        " isa"
 #endif
index 6c438e616c3d56e57467fdbb7c994b2c9f7ada47..50ba71dce19e6994c1848308d45bf8d9b6063096 100755 (executable)
@@ -29,13 +29,13 @@ function run() {
     run_mon $dir a --public-addr 127.0.0.1 || return 1
     # check that erasure code plugins are preloaded
     CEPH_ARGS='' ./ceph --admin-daemon $dir/a/ceph-mon.a.asok log flush || return 1
-    grep 'load: jerasure' $dir/a/log || return 1
+    grep 'load: jerasure.*lrc' $dir/a/log || return 1
     for id in $(seq 0 10) ; do
         run_osd $dir $id || return 1
     done
     # check that erasure code plugins are preloaded
     CEPH_ARGS='' ./ceph --admin-daemon $dir/ceph-osd.0.asok log flush || return 1
-    grep 'load: jerasure' $dir/osd-0.log || return 1
+    grep 'load: jerasure.*lrc' $dir/osd-0.log || return 1
     create_erasure_coded_pool ecpool || return 1
     FUNCTIONS=${FUNCTIONS:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
     for TEST_function in $FUNCTIONS ; do