[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110215131849.GC28010@dhcp231-156.rdu.redhat.com>
Date: Tue, 15 Feb 2011 08:18:50 -0500
From: Josef Bacik <josef@...hat.com>
To: Pádraig Brady <P@...igBrady.com>
Cc: Marti Raudsepp <marti@...fo.org>,
Chris Mason <chris.mason@...cle.com>,
Josef Bacik <josef@...hat.com>,
btrfs hackers <linux-btrfs@...r.kernel.org>,
Kernel hackers <linux-kernel@...r.kernel.org>,
8001@...bugs.gnu.org
Subject: Re: btrfs: compression breaks cp and cross-FS mv, FS_IOC_FIEMAP
bug?
On Tue, Feb 15, 2011 at 11:30:38AM +0000, Pádraig Brady wrote:
> On 14/02/11 17:58, Marti Raudsepp wrote:
> > On Mon, Feb 14, 2011 at 17:01, Chris Mason <chris.mason@...cle.com> wrote:
> >> Or, it could just be delalloc ;)
> >
> > I suspect delalloc. After creating the file, filefrag reports "1
> > extent found", but for some reason it doesn't actually print out
> > details of the extent.
>
> That's a bug in `filefrag -v` that I noticed independently yesterday.
> Without -v it will correctly report 0 extents.
> I've already suggested a patch to fix upstream.
>
> > After a "sync" call, the extent appears and "cp" starts working as expected:
>
> About that sync.
> I've noticed on ext4 loop back at least (and I suspect BTRFS is the same)
> that specifying FIEMAP_FLAG_SYNC (which cp does) is ineffective.
> I worked around this for cp tests by explicitly syncing with:
> dd if=/dev/null of=foo conv=notrunc,fdatasync
>
Well thats not good, thats all take care of in the generic code before it gets
to the fs, I'll take a look at that when I try and fix delalloc fiemap for
btrfs. Thanks,
Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists