Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 30 Oct 2002 09:11:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 30 Oct 2002 09:11:05 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:35847 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Wed, 30 Oct 2002 09:10:58 -0500 Date: Wed, 30 Oct 2002 14:17:20 +0000 From: Matthew Wilcox To: Larry McVoy Cc: linux-kernel@vger.kernel.org Subject: Re: ANNOUNCEMENT: Squashfs released (a highly compressed filesystem) Message-ID: <20021030141720.V27461@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1154 Lines: 25 Larry McVoy wrote: > > A r/w compressed filesystem would be darned useful too :) > > mmap(2) is, err, hard. Not impossible, it means the file system has to > support both compressed and uncompressed files, but it's interesting. Easier than you think, perhaps. Depends how much compression you're after, of course, but here's how Acorn did it in RISCiX (a 4.3BSD derivative): Pages were 32k (an interesting feature of the MMU...), and the underlying filesystem was a fairly vanilla BSD FFS (probably 4k blocks with 1k fragments; discs were around 50MB). Each page was written at a 32k boundary, but compressed. So there were holes in the file where other files could store their data. Naturally you waste on average 512 bytes per 32k page, but I think they managed to get 80MB of unix distro onto a 50MB disc this way, so it's nothing to be sneezed at. -- Revolutions do not require corporate support. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/