summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-transport.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2018-11-29 12:04:45 -0500
committerKotresh HR <khiremat@redhat.com>2018-12-03 08:45:12 +0000
commitf77fb6d568616592ab25501c402c140d15235ca9 (patch)
treeb02ccf4c86402956a510bfc71cf7e1e0e684c8e3 /rpc/rpc-lib/src/rpc-transport.c
parent4d58730c0cd6ab5db39aec8a15276f7bd3371b04 (diff)
features/bitrot: compare the signature with proper length
* The scrubber was comparing the checksum of the file that it calculated (by reading the file) with the on disk signature (stored via xattr) wrongly. It was using strlen to calculate the signature, while the actual length of the signature is given by the brick. Just use the actual length that the brick provides instead of trying to calculate the signature length via strlen API. * In posix, gfid2path was using the same string that contains the list of all the xattrs of file to save the value of the gfid2path xattr as well. This causes confusion when gfid2path xattr is queried by scrubber for getting the actual path of a corrupted file. Use separate string to fetch the value of the xattr instead of the string that contains the list of xattrs. Change-Id: I2d664ab524d2b312233476cb35863dde3122e9a9 fixes: bz#1654805 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.c')
0 files changed, 0 insertions, 0 deletions