Re: 2.4: "access beyond end of device" after ext2 mount

From: Bodo Eggert
Date: Fri Jan 21 2005 - 07:13:14 EST


Mario Holbe <Mario.Holbe@xxxxxxxxxxxxx> wrote:

> I understand the point that the device's blocksize affects the device's
> length... obviously a block device can only consist of full blocks,
> not half a block or something like that.
> However, if that's right, a block device's length should IMHO also be
> affected by it's blocksize - thus, the block device should return an
> EOF after the last block was read.

This would shut up the error message while still hiding the possibly (0.001%)
valuable data in the last block. Even if it's the right thing for almost any
user, the error message should stay and report this error. Instead, the
cause of this message should be documented.
-
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/