Refactors vector operations.

This commit is contained in:
Andrea Mazzoleni 2014-01-02 17:51:50 +01:00
parent 29b411e3fe
commit cae803bdfb
10 changed files with 75 additions and 76 deletions

View file

@ -148,7 +148,7 @@ int raid_test_rec(int mode, int nd, size_t size)
waste = v[nv-1];
/* fill data disk with random */
raid_mrand_vector(v, nd, size);
raid_mrand_vector(nd, size, v);
/* setup recov functions */
for (i = 0; i < np; ++i) {
@ -253,7 +253,7 @@ int raid_test_par(int mode, int nd, size_t size)
return -1;
/* fill with random */
raid_mrand_vector(v, nv, size);
raid_mrand_vector(nv, size, v);
/* compute the parity */
raid_par_ref(nd, np, size, v);