Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759018AbYAJImT (ORCPT ); Thu, 10 Jan 2008 03:42:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751944AbYAJImK (ORCPT ); Thu, 10 Jan 2008 03:42:10 -0500 Received: from brick.kernel.dk ([87.55.233.238]:25891 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbYAJImJ (ORCPT ); Thu, 10 Jan 2008 03:42:09 -0500 Date: Thu, 10 Jan 2008 09:42:06 +0100 From: Jens Axboe To: linux-kernel@vger.kernel.org, chris.mason@oracle.com, linux-fsdevel@vger.kernel.org, Mikulas Patocka , "Bryn M. Reeves" Subject: Re: [PATCH][RFC] fast file mapping for loop Message-ID: <20080110084206.GR6258@kernel.dk> References: <20080109085231.GE6650@kernel.dk> <20080109231628.GB4039@agk.fab.redhat.com> <20080110083130.GP6258@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080110083130.GP6258@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1273 Lines: 34 On Thu, Jan 10 2008, Jens Axboe wrote: > On Wed, Jan 09 2008, Alasdair G Kergon wrote: > > Here's the latest version of dm-loop, for comparison. > > > > To try it out, > > ln -s dmsetup dmlosetup > > and supply similar basic parameters to losetup. > > (using dmsetup version 1.02.11 or higher) > > Why oh why does dm always insist to reinvent everything? That's bad > enough in itself, but on top of that most of the extra stuff ends up > being essentially unmaintained. > > If we instead improve loop, everyone wins. > > Sorry to sound a bit harsh, but sometimes it doesn't hurt to think a bit > outside your own sandbox. So I looked at the code - it seems you build a full extent of the blocks in the file, filling holes as you go along. I initally did that as well, but that is to slow to be usable in real life. You also don't support sparse files, falling back to normal fs read/write paths. Supporting sparse files properly is a must, people generally don't want to prealloc a huge disk backing. -- Jens Axboe -- 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/