e2fsck hanging

Jeremy Sanders jss at ast.cam.ac.uk
Wed Mar 14 09:17:16 UTC 2007


Brian Davidson wrote:

> --- e2fsprogs-1.39/lib/ext2fs/icount.c  2005-09-06 05:40:14.000000000
> -0400
> +++ e2fsprogs-1.39-test/lib/ext2fs/icount.c     2007-03-13
> 10:56:19.000000000 -0400
> @@ -251,6 +251,10 @@
>                                  range = ((float) (ino - lowval)) /
>                                          (highval - lowval);
>                          mid = low + ((int) (range * (high-low)));
> +                       if (mid > high)
> +                               mid = high;
> +                       if (mid < low)
> +                               mid = low;
>                  }
> #endif
>                  if (ino == icount->list[mid].ino) {

I'm happy to report this patch solved the fsck hanging problem I reported a
few weeks ago.

Jeremy

-- 
Jeremy Sanders <jss at ast.cam.ac.uk>   http://www-xray.ast.cam.ac.uk/~jss/
X-Ray Group, Institute of Astronomy, University of Cambridge, UK.
Public Key Server PGP Key ID: E1AAE053




More information about the Ext3-users mailing list