From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Suvanto Subject: Re: [PATCH]Re: The first character disappears Date: Mon, 24 Aug 2009 19:42:04 +0300 Message-ID: References: <20090824115232.GC15449@think> <4A928CEF.2060903@dpf.gov.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-btrfs@vger.kernel.org, Chris Mason To: Atila Return-path: In-Reply-To: List-ID: Now I notice that I can reproduce this index file corrupt only if compress is enabled. lvm lvcreate -L 5G -n btrfs_test /dev/vg_md1 mkbtrfs /dev/mapper/vg_md1-btrfs_test mount -t btrfs -o subvol=.,compress /dev/mapper/vg_md1-btrfs_test /tmp/btrfs/ btrfsctl -S test /tmp/btrfs/ cd /tmp/btrfs/test/ git clone /usr/src/linux-2.6/ /tmp/btrfs-progs-unstable/bcp linux-2.6/ linux-2.6_copy cd linux-2.6_copy/ git status error: bad index file sha1 signature fatal: index file corrupt But without compress: mkbtrfs /dev/mapper/vg_md1-btrfs_test mount -t btrfs -o subvol=. /dev/mapper/vg_md1-btrfs_test /tmp/btrfs/ btrfsctl -S test /tmp/btrfs/ cd /tmp/btrfs/test/ git clone /usr/src/linux-2.6/ /tmp/btrfs-progs-unstable/bcp linux-2.6/ linux-2.6_copy cd linux-2.6_copy/ git status # On branch master nothing to commit (working directory clean) 2009/8/24 Markus Suvanto : > Ok, the first problem is fixed but after bcp > git status > error: bad index file sha1 signature > fatal: index file corrupt