Re: [PATCH]Re: The first character disappears

Markus Suvanto
2009-08-24T16:42:04Z

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 <markus.suvanto@gmail.com>:
> Ok, the first problem is fixed but after bcp
> git status
> error: bad index file sha1 signature
> fatal: index file corrupt