From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 13:19:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ABD016A41F for ; Wed, 20 Jul 2005 13:19:04 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D7D143D45 for ; Wed, 20 Jul 2005 13:19:04 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20552 invoked from network); 20 Jul 2005 13:19:03 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Jul 2005 13:19:03 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 638A82A; Wed, 20 Jul 2005 09:19:02 -0400 (EDT) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <20050718163250.D28772@maren.thelosingend.net> <44d5peixay.fsf@be-well.ilk.org> <20050720004530.B48721@maren.thelosingend.net> From: Lowell Gilbert Date: 20 Jul 2005 09:19:02 -0400 In-Reply-To: <20050720004530.B48721@maren.thelosingend.net> Message-ID: <44ackhk43d.fsf@be-well.ilk.org> Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Some sort of filter based filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 13:19:04 -0000 Svein Halvor Halvorsen writes: > * Svein Halvor Halvorsen writes: > > > What would be nice, is some kind of nullfs-like read only filesystem > > > that would send all files through a configurable filter when opened. > > > That way I could put all my music in FLAC format on hdd, and then, > > > when I wanted to transfer some tracks to my portable player, I could > > > grab the files from the ogg-directory. Or when I wanted to burn to > > > CD-A, I could grab 'em from the wav-dir. > > * Lowell Gilbert [2005-07-19 12:18 -0400] > > It's a clever idea, but not really very useful; usually a virtual > > filesystem approach is good when you can generate the data as needed. > > For something like this, you would need to pregenerate the various > > forms anyway, so you wouldn't save disk space. > > Why would the various forms need to be pre-generated? > > I can easily imagine some mechanism where my flac files are filtered > through a flac decoder and into a vorbis encoder on-the-fly. > The same goes for iconv conversion, image processing, etc. > > In fact, this is the sole purpose of my suggestion. You're right that the outputs wouldn't *have* to be pre-generated, but doing it on the fly would make the project both more difficult to implement and (I think) less convenient to use. It would be pretty slow if you really did generate it on the fly. Also, a lot of other things would get very tricky: for example, you wouldn't have the file size available when listing a directory of "virtual" files. Be well. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/