--- /var/tmp/portage/inn-2.4.1/work/inn-2.4.1/backends/inndf.c 2004-01-07 23:47:19.000000000 +0100 +++ ./backends/inndf.c 2004-03-03 19:36:07.000000000 +0100 @@ -1,4 +1,4 @@ -/* $Id: inndf.c,v 1.25 2002/11/28 06:21:20 vinocur Exp $ +/* $Id: inndf.c,v 1.25.2.2 2004/03/03 18:36:07 hkehoe Exp $ ** ** Reports free kilobytes (not disk blocks) or free inodes. ** @@ -141,6 +141,10 @@ value of a signed long. */ if (amount > (1UL << 31) - 1) amount = (1UL << 31) - 1; + + /* 2.6 kernels show 0 available and used inodes, instead. */ + if (amount == 0 && df_files(info) == 0) + amount = (1UL << 31) - 1; } else { /* Do the multiplication in floating point to try to retain accuracy if the free space in bytes would overflow an