lkml.org 
[lkml]   [1999]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Race in buffer code (Was Re: move block #A to block #B on a given device.)
On Fri, 5 Nov 1999, Mikulas Patocka wrote:

>What if user does cat /dev/hda1>/dev/null on mounted device while
>filesystem driver does getblk? ... the buffer gets corrupted.

I was considering the case where the buffer returned by getblk is _just_
uptodate. If the block is just uptodate then all potential readers as us
won't even try to start read-io and so the `cp /dev/? /dev/null` won't
trigger any I/O and won't risk to invalidate our memcpy.

Andrea


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

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