[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: e2fsck hanging



This patch does the trick.

--- 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) {

Our inode count is 732,577,792 on a 5.4 TB filesystem with 5.0 TB in use (94% use). It took about 9 hours to run, and used of 4GB of memory.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]