From owner-cvs-all@FreeBSD.ORG Thu Sep 8 11:20:15 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A15A416A41F; Thu, 8 Sep 2005 11:20:15 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E0C943D53; Thu, 8 Sep 2005 11:20:14 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail22.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j88BJuCm028423 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 8 Sep 2005 21:19:59 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j88BJtSR032092; Thu, 8 Sep 2005 21:19:56 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j88BJqiS032091; Thu, 8 Sep 2005 21:19:52 +1000 (EST) (envelope-from pjeremy) Date: Thu, 8 Sep 2005 21:19:52 +1000 From: Peter Jeremy To: Dmitry Pryanishnikov Message-ID: <20050908111952.GC26550@cirb503493.alcatel.com.au> References: <20050908094705.R19771@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050908094705.R19771@atlantis.atlantis.dp.ua> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@freebsd.org, Mike Silbersack , src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/fs/msdosfs msdosfs_denode.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 11:20:15 -0000 On Thu, 2005-Sep-08 10:06:14 +0300, Dmitry Pryanishnikov wrote: >it would be possible to keep this disk image as a regression test for >this particular bug (it could be compressed just fine ;). Compressing 4GB of NULs takes ~100 seconds on an Athlon XP-1800 and the result occupies 4MB. Uncompressing is about twice as fast but that's still 50 seconds to wait to read the second directory. I'd suggest keeping it as an uncompressed sparse file instead. That will be smaller than a compressed file (two real blocks - one at offset zero and the other at 4GB - about 32K + a couple of indirect blocks). You just need to be very careful about copying it. Accessing the directories is virtually instantaneous because there's no decompression. BTW, this is one case where you can compress compressed files - the smallest file is 783 bytes with 4GB NULs | gzip | gzip | gzip | wc. -- Peter Jeremy