Re: block device/VM question

From: Thunder from the hill (thunder@lightweight.ods.org)
Date: Tue Aug 27 2002 - 11:06:50 EST


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/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:19 EST