Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751762Ab1BNR7P (ORCPT ); Mon, 14 Feb 2011 12:59:15 -0500 Received: from mail-vw0-f46.google.com ([209.85.212.46]:61219 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980Ab1BNR7O (ORCPT ); Mon, 14 Feb 2011 12:59:14 -0500 MIME-Version: 1.0 In-Reply-To: <1297695521-sup-9460@think> References: <20110213155730.GK19533@dhcp231-156.rdu.redhat.com> <20110213161329.GL19533@dhcp231-156.rdu.redhat.com> <1297695521-sup-9460@think> From: Marti Raudsepp Date: Mon, 14 Feb 2011 19:58:17 +0200 Message-ID: Subject: Re: btrfs: compression breaks cp and cross-FS mv, FS_IOC_FIEMAP bug? To: Chris Mason Cc: Josef Bacik , btrfs hackers , Kernel hackers Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 44 On Mon, Feb 14, 2011 at 17:01, Chris Mason 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. After a "sync" call, the extent appears and "cp" starts working as expected: % rm -f foo bar % echo foo > foo % sync % filefrag -v foo Filesystem type is: 9123683e File size of foo is 4 (1 block, blocksize 4096) ext logical physical expected length flags 0 0 0 4096 not_aligned,inline,eof foo: 1 extent found % cp foo bar % hexdump bar 0000000 6f66 0a6f 0000004 Without sync: % rm -f foo bar % echo foo > foo % filefrag -v foo Filesystem type is: 9123683e File size of foo is 4 (1 block, blocksize 4096) ext logical physical expected length flags foo: 1 extent found % cp foo bar % hexdump bar 0000000 0000 0000 0000004 Regards, Marti -- 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/