Added new license header for version 2.0
Updated the README (Going to add detail on how to us GF-complete soon)master
parent
8d673c08fc
commit
44201cf436
|
@ -1,50 +1,43 @@
|
||||||
/* Examples/cauchy_01.c
|
/* *
|
||||||
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* All rights reserved.
|
||||||
|
*
|
||||||
Revision 1.2A
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
May 24, 2011
|
* Coding Techniques
|
||||||
|
*
|
||||||
James S. Plank
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
Department of Electrical Engineering and Computer Science
|
*
|
||||||
University of Tennessee
|
* Redistribution and use in source and binary forms, with or without
|
||||||
Knoxville, TN 37996
|
* modification, are permitted provided that the following conditions
|
||||||
plank@cs.utk.edu
|
* are met:
|
||||||
|
*
|
||||||
Copyright (c) 2011, James S. Plank
|
* - Redistributions of source code must retain the above copyright
|
||||||
All rights reserved.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
Redistribution and use in source and binary forms, with or without
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
modification, are permitted provided that the following conditions
|
* notice, this list of conditions and the following disclaimer in
|
||||||
are met:
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
- Redistributions of source code must retain the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer.
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* from this software without specific prior written permission.
|
||||||
notice, this list of conditions and the following disclaimer in
|
*
|
||||||
the documentation and/or other materials provided with the
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
distribution.
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
contributors may be used to endorse or promote products derived
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
from this software without specific prior written permission.
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1,50 +1,44 @@
|
||||||
/* Examples/cauchy_02.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revised by S. Simmerman
|
revised by S. Simmerman
|
||||||
2/25/08
|
2/25/08
|
||||||
|
|
|
@ -1,52 +1,44 @@
|
||||||
/* Examples/cauchy_03.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revised by S. Simmerman
|
revised by S. Simmerman
|
||||||
2/25/08
|
2/25/08
|
||||||
|
|
|
@ -1,53 +1,44 @@
|
||||||
/* Examples/cauchy_04.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revised by S. Simmerman
|
revised by S. Simmerman
|
||||||
2/25/08
|
2/25/08
|
||||||
|
|
|
@ -1,51 +1,42 @@
|
||||||
/* Examples/decoder.c
|
/* *
|
||||||
* Catherine D. Schuman, James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
|
||||||
|
|
||||||
Revision 1.2A
|
|
||||||
May 24, 2011
|
|
||||||
|
|
||||||
James S. Plank
|
|
||||||
Department of Electrical Engineering and Computer Science
|
|
||||||
University of Tennessee
|
|
||||||
Knoxville, TN 37996
|
|
||||||
plank@cs.utk.edu
|
|
||||||
|
|
||||||
Copyright (c) 2011, James S. Plank
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This program takes as input an inputfile, k, m, a coding
|
This program takes as input an inputfile, k, m, a coding
|
||||||
|
|
|
@ -1,52 +1,43 @@
|
||||||
/* Examples/encoder.c
|
/* *
|
||||||
* Catherine D. Schuman, James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
This program takes as input an inputfile, k, m, a coding
|
This program takes as input an inputfile, k, m, a coding
|
||||||
|
|
|
@ -1,53 +1,44 @@
|
||||||
/* Examples/jerasure_01.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "jerasure.h"
|
#include "jerasure.h"
|
||||||
|
|
|
@ -1,50 +1,43 @@
|
||||||
/* Examples/jerasure_02.c
|
/* *
|
||||||
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* All rights reserved.
|
||||||
|
*
|
||||||
Revision 1.2A
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
May 24, 2011
|
* Coding Techniques
|
||||||
|
*
|
||||||
James S. Plank
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
Department of Electrical Engineering and Computer Science
|
*
|
||||||
University of Tennessee
|
* Redistribution and use in source and binary forms, with or without
|
||||||
Knoxville, TN 37996
|
* modification, are permitted provided that the following conditions
|
||||||
plank@cs.utk.edu
|
* are met:
|
||||||
|
*
|
||||||
Copyright (c) 2011, James S. Plank
|
* - Redistributions of source code must retain the above copyright
|
||||||
All rights reserved.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
Redistribution and use in source and binary forms, with or without
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
modification, are permitted provided that the following conditions
|
* notice, this list of conditions and the following disclaimer in
|
||||||
are met:
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
- Redistributions of source code must retain the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer.
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* from this software without specific prior written permission.
|
||||||
notice, this list of conditions and the following disclaimer in
|
*
|
||||||
the documentation and/or other materials provided with the
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
distribution.
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
contributors may be used to endorse or promote products derived
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
from this software without specific prior written permission.
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "jerasure.h"
|
#include "jerasure.h"
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/jerasure_03.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/jerasure_04.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1,48 +1,42 @@
|
||||||
/* Examples/jerasure_05.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/jerasure_06.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revised by S. Simmerman
|
revised by S. Simmerman
|
||||||
|
|
|
@ -1,48 +1,42 @@
|
||||||
/* Examples/jerasure_07.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/jerasure_08.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/liberation_01.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/reed_sol_01.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/reed_sol_02.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1,51 +1,44 @@
|
||||||
/* Examples/reed_sol_03.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
revised by S. Simmerman
|
revised by S. Simmerman
|
||||||
2/25/08
|
2/25/08
|
||||||
|
|
|
@ -1,51 +1,43 @@
|
||||||
/* Examples/reed_sol_04.c
|
/* *
|
||||||
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* All rights reserved.
|
||||||
|
*
|
||||||
Revision 1.2A
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
May 24, 2011
|
* Coding Techniques
|
||||||
|
*
|
||||||
James S. Plank
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
Department of Electrical Engineering and Computer Science
|
*
|
||||||
University of Tennessee
|
* Redistribution and use in source and binary forms, with or without
|
||||||
Knoxville, TN 37996
|
* modification, are permitted provided that the following conditions
|
||||||
plank@cs.utk.edu
|
* are met:
|
||||||
|
*
|
||||||
Copyright (c) 2011, James S. Plank
|
* - Redistributions of source code must retain the above copyright
|
||||||
All rights reserved.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
Redistribution and use in source and binary forms, with or without
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
modification, are permitted provided that the following conditions
|
* notice, this list of conditions and the following disclaimer in
|
||||||
are met:
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
- Redistributions of source code must retain the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer.
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* from this software without specific prior written permission.
|
||||||
notice, this list of conditions and the following disclaimer in
|
*
|
||||||
the documentation and/or other materials provided with the
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
distribution.
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
contributors may be used to endorse or promote products derived
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
from this software without specific prior written permission.
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1,49 +1,42 @@
|
||||||
/* Examples/reed_sol_01.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1,50 +1,41 @@
|
||||||
/* Examples/reed_sol_01.c
|
/* *
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Revision 1.2A
|
*
|
||||||
May 24, 2011
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
University of Tennessee
|
*
|
||||||
Knoxville, TN 37996
|
* Redistribution and use in source and binary forms, with or without
|
||||||
plank@cs.utk.edu
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
Copyright (c) 2011, James S. Plank
|
*
|
||||||
All rights reserved.
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
Redistribution and use in source and binary forms, with or without
|
*
|
||||||
modification, are permitted provided that the following conditions
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
are met:
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
- Redistributions of source code must retain the above copyright
|
* distribution.
|
||||||
notice, this list of conditions and the following disclaimer.
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
* contributors may be used to endorse or promote products derived
|
||||||
notice, this list of conditions and the following disclaimer in
|
* from this software without specific prior written permission.
|
||||||
the documentation and/or other materials provided with the
|
*
|
||||||
distribution.
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
contributors may be used to endorse or promote products derived
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
from this software without specific prior written permission.
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -53,6 +44,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "jerasure.h"
|
#include "jerasure.h"
|
||||||
#include "reed_sol.h"
|
#include "reed_sol.h"
|
||||||
|
|
||||||
|
#define BUFSIZE 4096
|
||||||
|
|
||||||
static void *malloc16(int size) {
|
static void *malloc16(int size) {
|
||||||
void *mem = malloc(size+16+sizeof(void*));
|
void *mem = malloc(size+16+sizeof(void*));
|
||||||
void **ptr = (void**)((long)(mem+16+sizeof(void*)) & ~(15));
|
void **ptr = (void**)((long)(mem+16+sizeof(void*)) & ~(15));
|
||||||
|
|
|
@ -1,3 +1,42 @@
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
# Coding Techniques
|
||||||
|
#
|
||||||
|
# Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
#
|
||||||
|
# - Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# - Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in
|
||||||
|
# the documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
#
|
||||||
|
# - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived
|
||||||
|
# from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
|
# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
GF_COMPLETE_DIR=/usr/local/bin
|
GF_COMPLETE_DIR=/usr/local/bin
|
||||||
GF_METHODS=${GF_COMPLETE_DIR}/gf_methods
|
GF_METHODS=${GF_COMPLETE_DIR}/gf_methods
|
||||||
k=12
|
k=12
|
||||||
|
@ -52,4 +91,4 @@ if [ -n ${FAIL} ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Passed all tests!"
|
echo "Passed all tests!"
|
|
@ -1,3 +1,42 @@
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
# Coding Techniques
|
||||||
|
#
|
||||||
|
# Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
#
|
||||||
|
# - Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# - Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in
|
||||||
|
# the documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
#
|
||||||
|
# - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived
|
||||||
|
# from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
|
# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
GF_COMPLETE_DIR=/usr/local/bin
|
GF_COMPLETE_DIR=/usr/local/bin
|
||||||
GF_METHODS=${GF_COMPLETE_DIR}/gf_methods
|
GF_METHODS=${GF_COMPLETE_DIR}/gf_methods
|
||||||
ITERATIONS=128
|
ITERATIONS=128
|
||||||
|
@ -54,4 +93,4 @@ if [ -n ${FAIL} ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Passed all tests!"
|
echo "Passed all tests!"
|
|
@ -1,8 +1,10 @@
|
||||||
Copyright (c) 2011, James S. Plank
|
|
||||||
|
Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Revision 2.0
|
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
||||||
Nov, 18 2013 (Kevin Greenan and James S. Plank)
|
|
||||||
|
Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
26
README.nd
26
README.nd
|
@ -1,7 +1,16 @@
|
||||||
This is revision 1.2A of Jerasure. It is basically equivalent to revision 1.2
|
This is revision 2.0 of Jerasure. This is pretty much Jerasure 1.2 without the
|
||||||
except it is released under the New BSD license.
|
original Galois Field backend. Version 2.0 links directly to GF-Complete.
|
||||||
|
|
||||||
See technical report CS-08-627 for a description of the code.
|
External Documentation:
|
||||||
|
|
||||||
|
See technical report CS-08-627 for a description of the main interfaces (Version 1.2)
|
||||||
|
|
||||||
|
See http://web.eecs.utk.edu/~plank/plank/papers/CS-13-703.html for information
|
||||||
|
on GF-Complete and the tarball needed to install it.
|
||||||
|
|
||||||
|
Custom usgae of GF-Complete is explained in this file (see below).
|
||||||
|
|
||||||
|
NOTE: You must have GF-Complete installed in order to use Jerasure 2.0.
|
||||||
|
|
||||||
There are two directories:
|
There are two directories:
|
||||||
|
|
||||||
|
@ -10,3 +19,14 @@ The home directory contains the jerasure code.
|
||||||
The Examples directory contains the example programs.
|
The Examples directory contains the example programs.
|
||||||
|
|
||||||
The makefile assumes that Examples is a subdirectory of the home directory.
|
The makefile assumes that Examples is a subdirectory of the home directory.
|
||||||
|
|
||||||
|
Inclusion of GF-Complete:
|
||||||
|
|
||||||
|
As long as GF-Complete is installed, Jerasure 2.0 can be used just as previous
|
||||||
|
versions. There is no need to define custom Galois Fields. Jerasure will
|
||||||
|
determine the default field to use, if one is not specified.
|
||||||
|
|
||||||
|
If you would like to explore a using a different Galois Field implementation,
|
||||||
|
you can dynamically set the backend GF for a given word-size (w).
|
||||||
|
|
||||||
|
<TBD - Add instructions>
|
||||||
|
|
26
README.txt
26
README.txt
|
@ -1,7 +1,16 @@
|
||||||
This is revision 1.2A of Jerasure. It is basically equivalent to revision 1.2
|
This is revision 2.0 of Jerasure. This is pretty much Jerasure 1.2 without the
|
||||||
except it is released under the New BSD license.
|
original Galois Field backend. Version 2.0 links directly to GF-Complete.
|
||||||
|
|
||||||
See technical report CS-08-627 for a description of the code.
|
External Documentation:
|
||||||
|
|
||||||
|
See technical report CS-08-627 for a description of the main interfaces (Version 1.2)
|
||||||
|
|
||||||
|
See http://web.eecs.utk.edu/~plank/plank/papers/CS-13-703.html for information
|
||||||
|
on GF-Complete and the tarball needed to install it.
|
||||||
|
|
||||||
|
Custom usgae of GF-Complete is explained in this file (see below).
|
||||||
|
|
||||||
|
NOTE: You must have GF-Complete installed in order to use Jerasure 2.0.
|
||||||
|
|
||||||
There are two directories:
|
There are two directories:
|
||||||
|
|
||||||
|
@ -10,3 +19,14 @@ The home directory contains the jerasure code.
|
||||||
The Examples directory contains the example programs.
|
The Examples directory contains the example programs.
|
||||||
|
|
||||||
The makefile assumes that Examples is a subdirectory of the home directory.
|
The makefile assumes that Examples is a subdirectory of the home directory.
|
||||||
|
|
||||||
|
Inclusion of GF-Complete:
|
||||||
|
|
||||||
|
As long as GF-Complete is installed, Jerasure 2.0 can be used just as previous
|
||||||
|
versions. There is no need to define custom Galois Fields. Jerasure will
|
||||||
|
determine the default field to use, if one is not specified.
|
||||||
|
|
||||||
|
If you would like to explore a using a different Galois Field implementation,
|
||||||
|
you can dynamically set the backend GF for a given word-size (w).
|
||||||
|
|
||||||
|
<TBD - Add instructions>
|
||||||
|
|
85
cauchy.c
85
cauchy.c
|
@ -1,52 +1,43 @@
|
||||||
/* cauchy.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
84
cauchy.h
84
cauchy.h
|
@ -1,50 +1,42 @@
|
||||||
/* cauchy.h
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
|
* Coding Techniques
|
||||||
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
*
|
||||||
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
|
||||||
|
|
||||||
Revision 1.2A
|
|
||||||
May 24, 2011
|
|
||||||
|
|
||||||
James S. Plank
|
|
||||||
Department of Electrical Engineering and Computer Science
|
|
||||||
University of Tennessee
|
|
||||||
Knoxville, TN 37996
|
|
||||||
plank@cs.utk.edu
|
|
||||||
|
|
||||||
Copyright (c) 2011, James S. Plank
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions
|
|
||||||
are met:
|
|
||||||
|
|
||||||
- Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in
|
|
||||||
the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived
|
|
||||||
from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
extern int *cauchy_original_coding_matrix(int k, int m, int w);
|
extern int *cauchy_original_coding_matrix(int k, int m, int w);
|
||||||
extern int *cauchy_xy_coding_matrix(int k, int m, int w, int *x, int *y);
|
extern int *cauchy_xy_coding_matrix(int k, int m, int w, int *x, int *y);
|
||||||
|
|
|
@ -1,51 +1,43 @@
|
||||||
/* cauchy_best_r6.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
91
galois.c
91
galois.c
|
@ -1,51 +1,43 @@
|
||||||
/* Galois.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -197,13 +189,6 @@ static void galois_init_default_field(int w)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w == 16) {
|
|
||||||
if (!gf_init_hard(gfp_array[w], w, GF_MULT_SPLIT_TABLE, GF_REGION_ALTMAP, GF_DIVIDE_DEFAULT, 0, 16, 4, NULL, NULL)) {
|
|
||||||
fprintf(stderr, "ERROR -- cannot init default Galois field for w=%d\n", w);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!gf_init_easy(gfp_array[w], w)) {
|
if (!gf_init_easy(gfp_array[w], w)) {
|
||||||
fprintf(stderr, "ERROR -- cannot init default Galois field for w=%d\n", w);
|
fprintf(stderr, "ERROR -- cannot init default Galois field for w=%d\n", w);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
84
galois.h
84
galois.h
|
@ -1,51 +1,43 @@
|
||||||
/* Galois.h
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _GALOIS_H
|
#ifndef _GALOIS_H
|
||||||
#define _GALOIS_H
|
#define _GALOIS_H
|
||||||
|
|
||||||
|
|
84
jerasure.c
84
jerasure.c
|
@ -1,51 +1,43 @@
|
||||||
/* jerasure.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
84
jerasure.h
84
jerasure.h
|
@ -1,51 +1,43 @@
|
||||||
/* jerasure.h - header of kernel procedures
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _JERASURE_H
|
#ifndef _JERASURE_H
|
||||||
#define _JERASURE_H
|
#define _JERASURE_H
|
||||||
|
|
||||||
|
|
85
liberation.c
85
liberation.c
|
@ -1,52 +1,43 @@
|
||||||
/* liberation.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
85
liberation.h
85
liberation.h
|
@ -1,52 +1,43 @@
|
||||||
/* liberation.h
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef _LIBERATION
|
#ifndef _LIBERATION
|
||||||
|
|
||||||
extern int *liberation_coding_bitmatrix(int k, int w);
|
extern int *liberation_coding_bitmatrix(int k, int w);
|
||||||
|
|
84
reed_sol.c
84
reed_sol.c
|
@ -1,51 +1,43 @@
|
||||||
/* reed_sol.c
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
85
reed_sol.h
85
reed_sol.h
|
@ -1,52 +1,43 @@
|
||||||
/* reed_sol.h
|
/* *
|
||||||
* James S. Plank
|
* Copyright (c) 2013, James S. Plank and Kevin Greenan
|
||||||
|
* All rights reserved.
|
||||||
Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure Coding Techniques
|
*
|
||||||
|
* Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
|
||||||
Revision 1.2A
|
* Coding Techniques
|
||||||
May 24, 2011
|
*
|
||||||
|
* Revision 2.0: Galois Field backend now links to GF-Complete
|
||||||
James S. Plank
|
*
|
||||||
Department of Electrical Engineering and Computer Science
|
* Redistribution and use in source and binary forms, with or without
|
||||||
University of Tennessee
|
* modification, are permitted provided that the following conditions
|
||||||
Knoxville, TN 37996
|
* are met:
|
||||||
plank@cs.utk.edu
|
*
|
||||||
|
* - Redistributions of source code must retain the above copyright
|
||||||
Copyright (c) 2011, James S. Plank
|
* notice, this list of conditions and the following disclaimer.
|
||||||
All rights reserved.
|
*
|
||||||
|
* - Redistributions in binary form must reproduce the above copyright
|
||||||
Redistribution and use in source and binary forms, with or without
|
* notice, this list of conditions and the following disclaimer in
|
||||||
modification, are permitted provided that the following conditions
|
* the documentation and/or other materials provided with the
|
||||||
are met:
|
* distribution.
|
||||||
|
*
|
||||||
- Redistributions of source code must retain the above copyright
|
* - Neither the name of the University of Tennessee nor the names of its
|
||||||
notice, this list of conditions and the following disclaimer.
|
* contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
- Redistributions in binary form must reproduce the above copyright
|
*
|
||||||
notice, this list of conditions and the following disclaimer in
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
the documentation and/or other materials provided with the
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
distribution.
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
- Neither the name of the University of Tennessee nor the names of its
|
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
contributors may be used to endorse or promote products derived
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
from this software without specific prior written permission.
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
||||||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
extern int *reed_sol_vandermonde_coding_matrix(int k, int m, int w);
|
extern int *reed_sol_vandermonde_coding_matrix(int k, int m, int w);
|
||||||
extern int *reed_sol_extended_vandermonde_matrix(int rows, int cols, int w);
|
extern int *reed_sol_extended_vandermonde_matrix(int rows, int cols, int w);
|
||||||
extern int *reed_sol_big_vandermonde_distribution_matrix(int rows, int cols, int w);
|
extern int *reed_sol_big_vandermonde_distribution_matrix(int rows, int cols, int w);
|
||||||
|
|
Loading…
Reference in New Issue