[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: e2fsck hanging
- From: Andreas Dilger <adilger clusterfs com>
- To: Jeremy Sanders <jss ast cam ac uk>
- Cc: Theodore Ts'o <tytso mit edu>, Ext3-users redhat com
- Subject: Re: e2fsck hanging
- Date: Wed, 14 Mar 2007 10:57:31 -0400
On Mar 14, 2007 09:17 +0000, Jeremy Sanders 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.
Any real reason we don't change this to a double instead of a float?
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]