lkml.org 
[lkml]   [2003]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.0 Ooops while accessing ejected floppy
Wiktor Wodecki <wodecki@gmx.de> wrote:
>
> I forgot to unmount my floppy before ejecting it. No problem here (it is
> my fault after all) but the kernel gave me an Ooops.
> Nothing bad really happend, and I could continue work. However, I
> thought to give a note here.
>
> Dec 21 14:50:38 kakerlak kernel: floppy0: disk absent or changed during
> operation
> Dec 21 14:50:38 kakerlak kernel: end_request: I/O error, dev fd0, sector
> 7
> Dec 21 14:50:38 kakerlak kernel: lost page write due to I/O error on fd0
> Dec 21 14:50:38 kakerlak kernel: buffer layer error at fs/buffer.c:2827

It's a warning, not an oops. The below should shut it up.




From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

Suppress a buffer_error() warning which occurs when a page which previously
had an I/O error gets its buffers stripped.



fs/buffer.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/buffer.c~buffer_error-suppression fs/buffer.c
--- 25/fs/buffer.c~buffer_error-suppression 2003-12-21 22:11:33.000000000 -0800
+++ 25-akpm/fs/buffer.c 2003-12-21 22:11:33.000000000 -0800
@@ -2820,7 +2820,7 @@ drop_buffers(struct page *page, struct b
bh = bh->b_this_page;
} while (bh != head);

- if (!was_uptodate && PageUptodate(page))
+ if (!was_uptodate && PageUptodate(page) && !PageError(page))
buffer_error();

do {
_

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

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