Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sschapiro:openstack:upstream
lvm2
lvm2-2_02_84-fix-crc32-calculation-on-big-endia...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lvm2-2_02_84-fix-crc32-calculation-on-big-endian-cpu.patch of Package lvm2
WHATS_NEW | 4 ++++ lib/misc/crc.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 41761d2..ca36ccb 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,3 +1,7 @@ +Version 2.02.84 - +=================================== + Fix CRC32 calculation on big endian CPU (2.02.75). + Version 2.02.83 - 4th February 2011 =================================== Allow exclusive activation of snapshots in a cluster. diff --git a/lib/misc/crc.c b/lib/misc/crc.c index 9f95c37..c948b77 100644 --- a/lib/misc/crc.c +++ b/lib/misc/crc.c @@ -16,6 +16,7 @@ #include "lib.h" #include "crc.h" +#include "xlate.h" /* Calculate an endian-independent CRC of supplied buffer */ #ifndef DEBUG_CRC32 @@ -65,7 +66,7 @@ static uint32_t _calc_crc_new(uint32_t initial, const uint8_t *buf, uint32_t siz /* Process 4 bytes per iteration */ while (start < end) { - crc = crc ^ *start++; + crc = crc ^ xlate32(*start++); crc = crctab[crc & 0xff] ^ crc >> 8; crc = crctab[crc & 0xff] ^ crc >> 8; crc = crctab[crc & 0xff] ^ crc >> 8;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor