From: "Bill Rugolsky Jr." Subject: Re: interesting way to break ext3 using loop devices Date: Wed, 15 Nov 2006 11:22:22 -0500 Message-ID: <20061115162221.GD28558@ti64.telemetry-investments.com> References: <200611151536.21066.ak@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ext2-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Return-path: Received: from gw1a.telemetry-investments.com ([64.20.161.180]:44213 "EHLO sv1.telemetry-investments.com") by vger.kernel.org with ESMTP id S1030647AbWKOQWX (ORCPT ); Wed, 15 Nov 2006 11:22:23 -0500 To: Andi Kleen Content-Disposition: inline In-Reply-To: <200611151536.21066.ak@suse.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Nov 15, 2006 at 03:36:20PM +0100, Andi Kleen wrote: > Of course this was clearly an operator error and > copying a file system into itself is clearly a sick thing > to do, but still it shouldn't cause symptoms like this. Perhaps > it points to a deeper issue. Copying is silly, moving is perhaps not. That is in fact how the in-place file system conversion tools Convertfs - http://directory.fsf.org/sysadmin/misc/ConvertFS.html and anyfs-tools - http://anyfs-tools.sourceforge.net/ work: they move files into a loop mounted filesystem, use FIBMAP to find out the logical<->physical block map, then umount the lot and move the blocks of the loop file system to their final physical destination. The assumption, of course, is that there is enough slack free space to accommodate the extra meta-data. Regards, Bill Rugolsky