From owner-freebsd-questions@FreeBSD.ORG Tue Jul 19 16:18:48 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 8653216A41F for ; Tue, 19 Jul 2005 16:18:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C4343D5D for ; Tue, 19 Jul 2005 16:18:47 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 31915 invoked from network); 19 Jul 2005 16:18:46 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Jul 2005 16:18:46 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 82D452B; Tue, 19 Jul 2005 12:18:45 -0400 (EDT) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <20050718163250.D28772@maren.thelosingend.net> From: Lowell Gilbert Date: 19 Jul 2005 12:18:45 -0400 In-Reply-To: <20050718163250.D28772@maren.thelosingend.net> Message-ID: <44d5peixay.fsf@be-well.ilk.org> Lines: 31 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: Tue, 19 Jul 2005 16:18:48 -0000 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. > > Is something like this available somewhere? 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. > Or how about some other solution, not file system based? Scripting it would make sense; periodically scan the source directory for new files and build the alternate formats. I have a script that picks a random set of MP3 files out of a directory and builds a regular audio CD with those songs, normalizing the volume along the way. [I use this to burn CD-RWs to listen to in the gym.] It might be a useful example: look in http://be-well.ilk.org/~lowell/systuff/ Be well. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/