Hide Forgot
Created attachment 300 [details] patch for .spec file to use previous patch -- oops, forget to add changelog entry:)
static inline void cp32(char *d, char *s) { int i; for (i=4; i--;) d[i]=s[i]; } optimizes to code that's almost, but not quite, as simple for armv5tel.
The memcpy() used in the existing fix (Bug 397) is not inlined by gcc -g -O2 on this platform. A better fix that replaces the 4-byte memcpy() with an inlined call is provided in the patches attached, one for 3.0.5 and one for the mainline as of about 24 Aug 2010. This should be competitive even on those platforms that would inline the memcpy().
Hi Ted, Thanks for the patches. But can you send the patches to 'glusterfs.com' or 'gluster-devel', so it shows up @ http://patches.gluster.com and becomes easy to commit. More info on how to help in patches here: http://www.gluster.com/community/documentation/index.php/Development_Work_Flow Regards, Amar
Ted, Can you see if its working on armv5tel with latest master codebase (or use 3.1.2 release). I will be closing the bug as this patch is no more applicable.. but open a new bug if you see that its not working on that architecture.