Re: block device/VM question

Peter T. Breuer (ptb@it.uc3m.es)
Tue, 27 Aug 2002 18:14:43 +0200 (MET DST)


"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/