From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: [PATCH 0/4] Fiemap, an extent mapping ioctl - round 2 Date: Mon, 7 Jul 2008 17:53:54 +0100 Message-ID: <20080707165354.GA7707@shareable.org> References: <20080703225124.GB29319@disturbed> <20080704121325.GB29484@shareable.org> <20080707074021.GM29319@disturbed> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: jim owens , linux-fsdevel@vger.kernel.org Return-path: Received: from mail2.shareable.org ([80.68.89.115]:43837 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757446AbYGGQxz (ORCPT ); Mon, 7 Jul 2008 12:53:55 -0400 Content-Disposition: inline In-Reply-To: <20080707074021.GM29319@disturbed> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Dave Chinner wrote: > Like: > > # xfs_freeze -f > # xfs_bmap -vvp > # > # xfs_freeze -u ^^^ Oh, exactly the sort of thing which led to this quote from Andreas Dilger on why FIEMAP is *not* suitable for this, on generic filesystems :-) "EEEEEK [...] Directly writing underneath a filesystem is major bad news and will likely corrupt the filesystem because [page cache reasons]." Besides, if you're using the currently-XFS-specific freeze capability, a simple fsync() before the xfs_bmap, inside the freeze, will be sufficient won't it? -- Jamie