Subject: Bug#650407: fixing multiply-used blocks takes forever

From: Goswin von Brederlow <[email-masked]>
Date: Tue, 29 Nov 2011 17:02:27 +0100

Package: e2fsprogs
Version: 1.42~WIP-2011-11-20-1
Severity: normal
File: /sbin/e2fsck

Hi,

I had a filesystem with lots of errors, among them multiply-used
blocks. fsck.ext4 run fine and detected 179 inodes with multiply-used
blocks but then it started to clone files to fix those inodes. Every
3-4 hours it fixes one inode and just burns 100% cpu inbetween. Strace
shows no syscalls being made and it isn't swapping. It just sits there
and eats cpu.

Running an older fsck from grml (1.41) took less than a second per
inode.

As a side note I think resize2fs has the same issue. After pass 3
"Scanning inode table" it just sits there for a while also eating 100%
cpu before it continues.

MfG
	Goswin

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-rc7-xen-1 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages e2fsprogs depends on:
ii  e2fslibs    1.42~WIP-2011-11-20-1
ii  libblkid1   2.19.1-5             
ii  libc6       2.13-21              
ii  libcomerr2  1.42~WIP-2011-11-20-1
ii  libss2      1.42~WIP-2011-11-20-1
ii  libuuid1    2.19.1-5             
ii  util-linux  2.19.1-5             

e2fsprogs recommends no packages.

Versions of packages e2fsprogs suggests:
ii  e2fsck-static  <none>
ii  gpart          <none>
ii  parted         2.3-8 

-- no debconf information