public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* O_DIRECT support in ext3?
@ 2002-08-13 13:48 Roy Sigurd Karlsbakk
  2002-08-13 17:27 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-08-13 13:48 UTC (permalink / raw)
  To: Kernel mailing list

hi all

playing around with O_DIRECT, I really _can't_ make it work on ext3?

why is this?

roy
-- 
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: O_DIRECT support in ext3?
  2002-08-13 13:48 O_DIRECT support in ext3? Roy Sigurd Karlsbakk
@ 2002-08-13 17:27 ` Andreas Dilger
  2002-08-13 21:00   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2002-08-13 17:27 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk; +Cc: Kernel mailing list

On Aug 13, 2002  15:48 +0200, Roy Sigurd Karlsbakk wrote:
> playing around with O_DIRECT, I really _can't_ make it work on ext3?
> 
> why is this?

Because O_DIRECT needs a specific o_direct I/O method that has not yet
been written for ext3.  I believe only ext2 and reiserfs support it
right now.  I will eventually need to add support for this, but it is
not yet high on my list of priorities.  Maybe someone else will beat
me to it.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: O_DIRECT support in ext3?
  2002-08-13 17:27 ` Andreas Dilger
@ 2002-08-13 21:00   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2002-08-13 21:00 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: Roy Sigurd Karlsbakk, Kernel mailing list

Andreas Dilger wrote:
> 
> On Aug 13, 2002  15:48 +0200, Roy Sigurd Karlsbakk wrote:
> > playing around with O_DIRECT, I really _can't_ make it work on ext3?
> >
> > why is this?
> 
> Because O_DIRECT needs a specific o_direct I/O method that has not yet
> been written for ext3.  I believe only ext2 and reiserfs support it
> right now.  I will eventually need to add support for this, but it is
> not yet high on my list of priorities.  Maybe someone else will beat
> me to it.

Yes, we need to get it up and running for 2.5.  It should be relatively
straightforward.  It'll need an ext3_get_blocks_for_o_direct() which
does a journal_start/stop if create=1.

And maybe some fancy footwork around invalidating existing pagecache in
ext3_file_write(), but the current code looks to be OK actually.

It shouldn't be a big deal; mainly testing.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-13 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-13 13:48 O_DIRECT support in ext3? Roy Sigurd Karlsbakk
2002-08-13 17:27 ` Andreas Dilger
2002-08-13 21:00   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox