On Thu, 2002-11-07 at 12:25, George Georgalis wrote:
> On Thu, Nov 07, 2002 at 11:38:49AM -0600, Eric Sandeen wrote:
> >On Thu, 2002-11-07 at 11:37, George Georgalis wrote:
> >> Can you give examples of 'direct i/o'? do you mean like dd? from which I
> >> can pipe stdout to my media player?
> >
> >No, like O_DIRECT, as in:
> >
> >fd = open("tempfile_direct", O_CREAT|O_RDWR|O_DIRECT, 0666);
> >
> >It bypasses the buffer cache.
>
> Well, that sounds good. :) <trying to be gracious> can't we just mount a
> partition that way </>, I'm guessing no.
Nope, if nothing else, because the I/O has other requirements on it as
well (alignment & size) so you can't just say "I'd like to do O_DIRECT
please" and have everything happen magically.
> Humm, I see your syntax as a little different then my GNU/Linux OPEN(2)
> man page, is that because my man page is not patched with the xfs kernel
> or should I be using the other flags?
Not sure what you mean...
> int open(const char *pathname, int flags, mode_t mode);
That's the open() I show above.
-Eric
--
Eric Sandeen XFS for Linux http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx SGI, Inc. 651-683-3102
|