[Btrfs-devel] btrfs and git-reflog

Chris Mason chris.mason at oracle.com
Wed Jan 30 05:29:26 PST 2008


On Friday 25 January 2008, Paul Collins wrote:
> I was just playing with git 1.5.3.8 and btrfs 0.11, and I noticed
> something odd.
>

This one got stuck in the mailing list moderation queue.  The unstable tree 
has a fix for it, but it is actually a git bug where it loops forever when 
new files appear in a directory.

-chris

> If I prepare a very simple repository:
>
>   $ mkdir foo
>   $ cd foo
>   $ git init
>   Initialized empty Git repository in .git/
>   $ echo hi > blort
>   $ git add .
>   $ git commit -m create
>   Created initial commit 4ae9415: create
>    1 files changed, 1 insertions(+), 0 deletions(-)
>    create mode 100644 blort
>
> and then attempt to expire the reflogs
>
>   $ git-reflog --expire --all
>
> on ext3, git-reflog completes its work and exits immediately;
>
> and on btrfs, it gets stuck in some sort of loop that causes it to
> allocate more and more memory until I kill it or it pushes the
> machine into OOM.
>
> Kernel is 2.6.24 or so on x86-64.





More information about the Btrfs-devel mailing list