]> git.ipfire.org Git - thirdparty/mdadm.git/commit
add crc32c and use it for r5l checksum
authorSong Liu <songliubraving@fb.com>
Wed, 28 Oct 2015 19:06:06 +0000 (12:06 -0700)
committerNeilBrown <neilb@suse.com>
Fri, 30 Oct 2015 06:38:28 +0000 (17:38 +1100)
commit198d54787c89872bc72d2824ba3c9d1a783e31ae
tree520b9cf3de7ce1f067829a756849d9ff965d6c5b
parent356e69de7963540465ed584e106175491e2cff9c
add crc32c and use it for r5l checksum

In kernel space, r5l checksum will use crc32c:
http://marc.info/?l=linux-raid&m=144598970529191
mdadm need to change too.

This patch ports a simplified crc32c algorithm from kernel code,
and used in super1.c:write_empty_r5l_meta_block();

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Makefile
crc32c.c [new file with mode: 0644]
super1.c