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

From: Tejun Heo
Date: Fri Mar 07 2008 - 03:40:34 EST


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
#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;
}