#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);
}