Re: [Problem]: "access beyond end" of DVD-R

From: Jens Axboe
Date: Wed Mar 24 2004 - 05:18:38 EST


On Mon, Mar 22 2004, slindber@xxxxxxxx wrote:
> attempt to access beyond end of device
> hdc: rw=0, want=8174536, limit=8123200
> Buffer I/O error on device hdc, logical block 2043633
>
> There are more attempt to "access beyond end of device" messages, but
> they are similar so I've snipped them.
>
> I've had this problem on every kernel I've used (2.4.22 and 2.6.3 from
> gentoo, and 2.6.4-rc1-mm1). I've had it with three different discs,
> ISO, ISO/UDF, and UDF only (the output comes from the last disc). The
> entire disc is readable in Windows.

Does this make a difference for you (2.6 patch)?

===== drivers/ide/ide-cd.c 1.75 vs edited =====
--- 1.75/drivers/ide/ide-cd.c Tue Mar 16 09:39:41 2004
+++ edited/drivers/ide/ide-cd.c Wed Mar 24 11:16:22 2004
@@ -2372,7 +2372,7 @@

/* Now try to get the total cdrom capacity. */
stat = cdrom_get_last_written(cdi, &last_written);
- if (!stat && last_written) {
+ if (!stat && (last_written > toc->capacity)) {
toc->capacity = last_written;
set_capacity(drive->disk, toc->capacity * sectors_per_frame);
}

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/