lkml.org 
[lkml]   [2000]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectinvalidate buffers is not guaranteed to invalidate
Searching for the cause of some strange corruption
of the MBR I noticed that invalidate_buffers is not
guaranteed to invalidate the buffers - very unfortunate.

(Indeed, bh is removed only when bh->b_count is zero.
This means that one will get disk corruption if one
changes disks while some buffer heads still have
nonzero count.)

In this particular case the problem was caused by
fs/partitions/atari.c that did a bread() without
corresponding brelse(). [patch sent to Linus]

Andries



P.S. imm.c contains the amusing comment
/* Aimmrently the ...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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