lkml.org 
[lkml]   [1996]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectsmall 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

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.027 / U:2.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site