lkml.org 
[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: block device/VM question
Date
"A month of sundays ago Thunder from the hill wrote:"
> Hi,
> On Tue, 27 Aug 2002, Peter T. Breuer wrote:
> > Is there any way of turning off VMS caching for a block device?

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

Thanks!

Yes, I've noticed this in the 2.5.31 kernel. This is something
to be done on open by the overlying fs or userspace utility, or
should I set the flag on the inode->filp (or whatever) myself in
the drivers open function? And do I need to define
inode->mapping->a_ops->direct_IO()? (sorry - but I haven't had time to
experiment yet today!).

It looks like the 2.5 kernel has this pathway, but what about the 2.4
kernel? Nothing.

Peter
-
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    [from the cache]
©2003-2011 Jasper Spaans