diff --git a/raid/raid.c b/raid/raid.c index ee4081f1..b9e2b0f3 100644 --- a/raid/raid.c +++ b/raid/raid.c @@ -15,35 +15,17 @@ * along with this program. If not, see . */ -/* - * Copyright notes: - * - * The RAID5 and RAID6 support was originally derived from the - * H. Peter Anvin paper "The mathematics of RAID-6" [1] and the - * libraid6 library, also by H. Peter Anvin, released with license - * "GPLv2 or any later version" inside the Linux Kernel 2.6.38. - * - * This support was later completely rewritten (many times), but - * the H. Peter Anvin's Copyright may still apply. - * - * The others RAID levels and the recovering based on matrix - * inversion is original work implemented from scratch. - */ +#include "internal.h" +#include "gf.h" /* - * The RAID5 and RAID6 support is implemented using the Galois Field - * GF(2^8) with the primitive polynomial x^8 + x^4 + x^3 + x^2 + 1 - * (285 decimal). + * This is a RAID implementation working in the Galois Field GF(2^8) with + * the primitive polynomial x^8 + x^4 + x^3 + x^2 + 1 (285 decimal), and + * supporting up to six parity levels. * - * The parity P and Q of a set of N disk Di with 0<=i