xfs
[Top] [All Lists]

Re: streaming media and realtime subvolume

To: George Georgalis <georgw@xxxxxxxxx>
Subject: Re: streaming media and realtime subvolume
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 07 Nov 2002 12:53:28 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20021107182517.GD8321@trot>
References: <20021107151729.GA7085@trot> <1036683254.13907.4.camel@stout.americas.sgi.com> <20021107173730.GB8321@trot> <1036690729.13877.14.camel@stout.americas.sgi.com> <20021107182517.GD8321@trot>
Sender: linux-xfs-bounce@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>