Bug#299429: Durep don't shows report correctly with kernel 2.6.8-2

2005-03-15 Thread Eduard Bloch
#include hallo.h
* Eriberto [Sun, Mar 13 2005, 10:32:39PM]:
 Package: Durep
 Version: 0.8.1-3
 
 Durep don't show  report correctly with kernel 2.6.8-2. The report shows 
 high values about disk usage.
 
 The problem occurs with kernel 2.6.8-2 only. The test was made on two 
 machines.
 
 The reports :
 
 1) Kernel 2.4.27-2-386:
 micro100:~# durep -td 1 /root
 [ /root/  15.1M ]
 micro100:~# du -sh /root
 16M /root
 2) Kernel 2.6.8-1-686:
 
 idem

What's that?

 3) Kernel 2.6.8-2-686:
 
 micro100:~# durep -td 1 /root
 [ /root/  481.4M ]
...
 micro100:~# du -sh /root
 16M /root

It is exactly eight times more which looks like a wrong block size
calculation. I use Perl's stat output and multiply blksize and blocks
fields, then dividy by 8. 

So either Perl is broken, or the filesystem driver is broken in the
kernel. Please try following:

perl -e '@a=stat .; print blocksize: $a[11]\n'

and then compile the attached file with gcc and run it. Let me know how
the output looks like.

Regards,
Eduard.
-- 
Ambassador Londo Mollari: But this - this, this, this is like being nibbled to
death by... what are those Earth creatures called? Feathers, long bill, webbed
feet... go 'quack'...
Ambassador Vir Cotto: Cats.
Ambassador Londo Mollari: Cats. Being nibbled to death by cats.
 -- Quotes from Babylon 5 --
#include stdio.h
#include sys/stat.h

int main() {
   struct stat si;
   stat(., si);
   printf(blocksize: %i\n, si.st_blksize);
}


Bug#299429: Durep don't shows report correctly with kernel 2.6.8-2

2005-03-13 Thread Eriberto
Package: Durep
Version: 0.8.1-3
Durep don't show  report correctly with kernel 2.6.8-2. The report shows 
high values about disk usage.

The problem occurs with kernel 2.6.8-2 only. The test was made on two 
machines.

The reports :
1) Kernel 2.4.27-2-386:
micro100:~# durep -td 1 /root
[ /root/  15.1M ]
  7.1M [%%] 24  47.29% [FILES]
  3.6M [%%%   ]  0  23.69% debian_wallpaper/
  1.8M [%%%   ]  1  11.65% .openoffice/
  1.7M [%%%   ]  1  11.02% .mozilla/
592.2K [% ]  1   3.84% .mcop/
347.2K [  ]  2   2.25% .kde/
 22.6K [  ]  1   0.15% Desktop/
 17.3K [  ]  0   0.11% .mc/
micro100:~# du -sh /root
16M /root
2) Kernel 2.6.8-1-686:
idem
3) Kernel 2.6.8-2-686:
micro100:~# durep -td 1 /root
[ /root/  481.4M ]
228.3M [%%] 24  47.43% [FILES]
114.3M [%%%   ]  0  23.74% debian_wallpaper/
 55.9M [%%%   ]  1  11.61% .openoffice/
 53.0M [%%%   ]  1  11.01% .mozilla/
 18.3M [% ]  1   3.79% .mcop/
 10.5M [  ]  2   2.18% .kde/
641.6K [  ]  1   0.13% Desktop/
513.3K [  ]  0   0.10% .mc/
micro100:~# du -sh /root
16M /root
Thanks!!
Eriberto - Brazil

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]