Skip to content

Commit 11d5616

Browse files
committed
test/erasure-code: Change default erasure code profile from jerasure to isa
Signed-off-by: Jamie Pryde <[email protected]>
1 parent dc87053 commit 11d5616

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/test/ceph-erasure-code-tool/test_ceph-erasure-code-tool.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ mkdir $TMPDIR
55
trap "rm -fr $TMPDIR" 0
66

77
ceph-erasure-code-tool test-plugin-exists INVALID_PLUGIN && exit 1
8-
ceph-erasure-code-tool test-plugin-exists jerasure
8+
ceph-erasure-code-tool test-plugin-exists isa
99

1010
ceph-erasure-code-tool validate-profile \
11-
plugin=jerasure,technique=reed_sol_van,k=2,m=1
11+
plugin=isa,technique=reed_sol_van,k=2,m=1
1212

1313
test "$(ceph-erasure-code-tool validate-profile \
14-
plugin=jerasure,technique=reed_sol_van,k=2,m=1 chunk_count)" = 3
14+
plugin=isa,technique=reed_sol_van,k=2,m=1 chunk_count)" = 3
1515

1616
test "$(ceph-erasure-code-tool calc-chunk-size \
17-
plugin=jerasure,technique=reed_sol_van,k=2,m=1 4194304)" = 2097152
17+
plugin=isa,technique=reed_sol_van,k=2,m=1 4194304)" = 2097152
1818

1919
dd if="$(which ceph-erasure-code-tool)" of=$TMPDIR/data bs=770808 count=1
2020
cp $TMPDIR/data $TMPDIR/data.orig
2121

2222
ceph-erasure-code-tool encode \
23-
plugin=jerasure,technique=reed_sol_van,k=2,m=1 \
23+
plugin=isa,technique=reed_sol_van,k=2,m=1 \
2424
4096 \
2525
0,1,2 \
2626
$TMPDIR/data
@@ -31,7 +31,7 @@ test -f $TMPDIR/data.2
3131
rm $TMPDIR/data
3232

3333
ceph-erasure-code-tool decode \
34-
plugin=jerasure,technique=reed_sol_van,k=2,m=1 \
34+
plugin=isa,technique=reed_sol_van,k=2,m=1 \
3535
4096 \
3636
0,2 \
3737
$TMPDIR/data

src/test/erasure-code/ceph_erasure_code_benchmark.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int ErasureCodeBench::setup(int argc, char** argv) {
5656
"size of the buffer to be encoded")
5757
("iterations,i", po::value<int>()->default_value(1),
5858
"number of encode/decode runs")
59-
("plugin,p", po::value<string>()->default_value("jerasure"),
59+
("plugin,p", po::value<string>()->default_value("isa"),
6060
"erasure code plugin name")
6161
("workload,w", po::value<string>()->default_value("encode"),
6262
"run either encode or decode")
@@ -343,7 +343,7 @@ int main(int argc, char** argv) {
343343
* compile-command: "cd ../../../build ; make -j4 ceph_erasure_code_benchmark &&
344344
* valgrind --tool=memcheck --leak-check=full \
345345
* ./bin/ceph_erasure_code_benchmark \
346-
* --plugin jerasure \
346+
* --plugin isa \
347347
* --parameter directory=lib \
348348
* --parameter technique=reed_sol_van \
349349
* --parameter k=2 \

src/test/erasure-code/ceph_erasure_code_non_regression.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int ErasureCodeNonRegression::setup(int argc, char** argv) {
6464
("help,h", "produce help message")
6565
("stripe-width,s", po::value<int>()->default_value(4 * 1024),
6666
"stripe_width, i.e. the size of the buffer to be encoded")
67-
("plugin,p", po::value<string>()->default_value("jerasure"),
67+
("plugin,p", po::value<string>()->default_value("isa"),
6868
"erasure code plugin name")
6969
("base", po::value<string>()->default_value("."),
7070
"prefix all paths with base")
@@ -314,7 +314,7 @@ int main(int argc, char** argv) {
314314
* make ceph_erasure_code_non_regression &&
315315
* libtool --mode=execute valgrind --tool=memcheck --leak-check=full \
316316
* ./ceph_erasure_code_non_regression \
317-
* --plugin jerasure \
317+
* --plugin isa \
318318
* --parameter technique=reed_sol_van \
319319
* --parameter k=2 \
320320
* --parameter m=2 \

0 commit comments

Comments
 (0)