Skip to contentSkip to conversation

O_DIRECT support in ext3?

DISCUSSION Roy Sigurd Karlsbakk 3 participants 3 messages Aug 13, 2002

lore
Share & tools
lore
#0 lore raw

hi all

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

why is this?

roy

Signature · 4 lines
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.
#1 lore raw
Quoted 3 lines · Roy Sigurd Karlsbakk

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/

#2 lore raw
Quoted 11 lines · Andreas Dilger
Quoted 3 lines · Roy Sigurd Karlsbakk

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.