Received: with ECARTIS (v1.0.0; list linux-xfs); Thu, 07 Nov 2002 10:23:36 -0800 (PST) Received: from dynamic.galis.org (ool-4350143e.dyn.optonline.net [67.80.20.62]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id gA7INUuR008079 for ; Thu, 7 Nov 2002 10:23:31 -0800 Received: (qmail 8667 invoked by uid 1010); 7 Nov 2002 18:25:17 -0000 Date: Thu, 7 Nov 2002 13:25:17 -0500 From: George Georgalis To: Eric Sandeen Cc: linux-xfs@oss.sgi.com Subject: Re: streaming media and realtime subvolume Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1036690729.13877.14.camel@stout.americas.sgi.com> User-Agent: Mutt/1.3.28i X-archive-position: 1569 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: georgw@galis.org Precedence: bulk X-list: linux-xfs 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. :) can't we just mount a partition that way , I'm guessing no. 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? SYNOPSIS #include #include #include int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int creat(const char *pathname, mode_t mode); (I've seen C, but I don't program in it so I'm weary) Is there some C code to handle this type of open/close with stdin/out? and which can be called from a perl or bash script? Or is this something I need to write on my own? surly somebody has done it.... Oh, one other thing, nobody has mentioned any mount parameters, ...I guess since I'm mostly doing read only, shortening the commit interval won't have any affect. ;) Thanks for the help. // George -- GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229 Security Services, Web, Mail, mailto:george@galis.org File, Print, DB and DNS Servers. http://www.galis.org/george