Bug 586680

Summary: checksum crc gives wrong checksum
Product: [Community] Virtualization Tools Reporter: Pengzhen Cao <pcao>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-28 07:30:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test-log:output.log
none
checksum_subfunction.sh
none
autotest-log
none
autotest-log none

Description Pengzhen Cao 2010-04-28 06:55:31 UTC
Description of problem:
checksum crc gives wrong checksum

Version-Release number of selected component (if applicable):
libguestfs-1.0.85-1.fc12.3.x86_64, 
latest git version 1.3.8

How reproducible:
100%

Steps to Reproduce:
1. run guestfish, add one existing image, run and mount it to /
2. run "checksum crc your_file"

  
Actual results:
return incorrect 9~10 digits

Expected results:
should return 32bit(4 bytes hex) crc checksum value

Additional info:
All other checksums are correct(md5/sha1/sha256 etc.)

uploading the test scripts "file_content.sh" and log file "output.log" during the test

Comment 1 Pengzhen Cao 2010-04-28 06:56:59 UTC
Created attachment 409688 [details]
test-log:output.log

Comment 2 Pengzhen Cao 2010-04-28 07:02:07 UTC
Created attachment 409691 [details]
checksum_subfunction.sh

Comment 3 Pengzhen Cao 2010-04-28 07:06:57 UTC
Created attachment 409696 [details]
autotest-log

Comment 4 Pengzhen Cao 2010-04-28 07:09:37 UTC
Created attachment 409697 [details]
autotest-log

Comment 5 Pengzhen Cao 2010-04-28 07:30:59 UTC
close as not a bug.
checksum crc use the "cksum" command not the "crc32" command