lkml.org 
[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: block device/VM question
Hi,

On Tue, 27 Aug 2002, Peter T. Breuer wrote:
> Is there any way of turning off VMS caching for a block device?
>
> I want all reads to come down to the driver, where I decide what to do
> about them. I don't want reads to read locally cached buffers in VMS
> unless I say so. The reason is that the device might have a remote
> writer.
>
> I'll have a look at the raw character device later (but I recall
> having looked before without it telling me anything - probably
> they make a fake request and transfer it to the device queue
> directly and treat the return with their own substituted end_req).
> I need a block device - I can't mount a character device. Now
> there's an idea! A mouse represented as a file system ..

O_DIRECT, or easily set the buffer to zero...

Thunder
--
--./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
--/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..-
.- -/---/--/---/.-./.-./---/.--/.-.-.-
--./.-/-.../.-./.././.-../.-.-.-

-
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:28    [W:0.037 / U:2.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site