Re: extra bytes written to SATA DVD drive on kernel 2.6.23 till 2.6.24.2

Tejun Heo
2008-03-07T08:40:33Z

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

Hello,

Gerold Jury wrote:
> Yes it happens with the DVD+RW (testet with dd now) and with DVD+R
>
> Thank you for the byte interpretation.
> Now I have a hint where to start with the debugging.

I've tried to reproduce the problem here but failed. Can you please try
the test with the file generated with the attached program? "genseqfile
524288 > testfile" will give you 1 meg testfile and it will give us
better idea how the data is getting corrupted.

Thanks.

--
tejun

[-- Attachment #2: genseqfile.c --]
[-- Type: text/x-csrc, Size: 170 bytes --]

#include <unistd.h>
#include <stdio.h>

int main(int argc, char **argv)
{
unsigned int i;

for (i = 0; i < atoi(argv[1]); i++)
fwrite(&i, 2, 1, stdout);
return 0;
}