-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File hash value changes, but hexdump seems unchange. #147
Comments
I cannot repeat it on another Linux Server.
md5sum readling log (the error one):
hexdump reading log (the correct one):
|
Log of md5sum readling on a 327680 byte file.
The reading is correct. |
You see this issue on the NAS? |
Interesting: Summing up the READs for "md5sum readling log (the error one)" shows that 1 byte is missing:
|
I tried this here but I cannot reproduce the problem. Can you post
from the machine you see this problem? |
I think you can set |
You mean something smaller? 131072 is the default [1]. |
I got the message of Now, I tried a 327681 byte file on a CentOS7 server and find the log:
It seems the And Might be sth. wrong with multithreaded reading ? Which should happen when truncating oversized read. |
What is also missing on the NAS is this: The request from the kernel to read data after offset 327680:
The I'll see if I can get a Linux 3.10 kernel to boot. Looks like it's still supported on https://www.kernel.org/ . |
I have tested this in a CentOS 7 VM that has kernel version |
Wow!
|
Problem seems to be in forward mode. I can copy the "-reverse" folder so it becomes a normal directory, mount it, and get the same effect. |
Also reproduced on Linux 4.13.8 with
(default is 32 (ref))
|
Both the panic and the data corruption should be fixed now. Can you confirm? The patch 3009ec9 was indeed wrong. |
The bug has been fixed on v1.4.1-29-g34547a6 . |
The SHA1 hash is different.
diff
says the two text files are the same, while saying the original binary files differ.The bug will not appear on
00h
filled files.Both the Perl script
shasum 5.88
andmd5sum (GNU coreutils) 8.24
reveals different hash values as above. Anddiff (GNU diffutils) 3.3
also says Binary files /volume1/dsG/t.bin and /tmp/t/t.bin differ.The minimal file with this bug FOR
md5sum
is 327681 bytes, 327680 bytes will be OK.dd if=/dev/urandom of=/volume1/dsG/t.bin bs=1 count=327681
And 368k is OK for
shasum
while 369k leads to this bug.The text was updated successfully, but these errors were encountered: