Messages in this thread | | | Subject | small patch for ll_rw_blk.c |
| |
Below a very minor improvement of ll_rw_blk.c:make_request(). Doing `df' on a freshly mounted HPFS filesystem produced a lot of <6>attempt to access beyond end of device <6>03:41: rw=2, want=48857, limit=48856 error messages. The reason is that map_4sectors() does a breada(dev,secno,512,0,UINT_MAX); without testing the size of the device. There are other places as well where a breada is done past the end of a disk. So, for a production kernel, there should not be any error messages in this situation (that is otherwise handled correctly). -----------------------------
(I do not repeat the patch because I have not checked that it still is correct. But no doubt your problem is still this breada past the end of the disk.)
Andries
| |