[Bugs] [Bug 1208124] New: BitRot :- checksum value stored in xattr is different than actual value for some file (checksum is truncated if it has terminating character as part of checksum itself)

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 1 12:56:46 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1208124

            Bug ID: 1208124
           Summary: BitRot :- checksum value stored in xattr is different
                    than actual value for some file (checksum is truncated
                    if it has terminating character as part of checksum
                    itself)
           Product: GlusterFS
           Version: mainline
         Component: bitrot
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: racpatel at redhat.com
                CC: bugs at gluster.org
      Docs Contact: bugs at gluster.org



Description of problem:
=======================
If checksum value has terminating character in checksum value, it truncates
remaining part before storing in xattr. Hence checksum value is different then
stored value


Version-Release number of selected component (if applicable):
=============================================================
0.803.gitf64666f.el6.x86_64

How reproducible:
=================
always

Steps to Reproduce:
===================
1. create and mount volume.
2. enable bitrot
3. create few files.
4. verify the checksum for each file

[root at rhs-client44 ~]# sha256sum
/pavanbrick7/r1/rhs-client37.lab.eng.blr.redhat.com/linux-3.19/arch/alpha/include/asm/cache.h
439634a7ce7919c5b05afe05495219a3cbbcf5ced2c45f003c1db8d37a08cbd3 
/pavanbrick7/r1/rhs-client37.lab.eng.blr.redhat.com/linux-3.19/arch/alpha/include/asm/cache.h
[root at rhs-client44 ~]# getfattr -d -m . -e hex
/pavanbrick7/r1/rhs-client37.lab.eng.blr.redhat.com/linux-3.19/arch/alpha/include/asm/cache.h
getfattr: Removing leading '/' from absolute path names
# file:
pavanbrick7/r1/rhs-client37.lab.eng.blr.redhat.com/linux-3.19/arch/alpha/include/asm/cache.h
trusted.gfid=0x3e6e212be7fa4e83861ac4224b008c16
trusted.glusterfs.bit-rot.signature=0x01000000000000000100000000000000439634a7ce7919c5b05afe05495219a3cbbcf5ced2c45f
trusted.glusterfs.bit-rot.version=0x0100000000000000551a6a04000b30ee


checksum has - 00 so remaing part (3c1db8d37a08cbd3) is truncated in
trusted.glusterfs.bit-rot.signature


Actual Result:-
===============
checksum mismatch

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are the Docs Contact for the bug.


More information about the Bugs mailing list