On Sun, 07 Nov 2004 11:20:16 +0100 (GMT), Ted Harding ted.harding@nessie.mcc.ac.uk wrote:
Hi Folks,
On one (A) of my 3 running machines, I noticed that 'ls -ls' on /var/log shows:
A: 44 -r-------- 1 root root 19136220 Oct 30 10:52 lastlog
which is inconsistent: 44K according to $1, but 19136220 bytes (19MB) according to $6.
"ls -s" shows the file sizes in blocks. The question is what is a block?
My log directory has a file using more blocks than would appear necessary to hold all the bytes: 108 -rw-r--r-- 1 root root 102591 Jan 1 1996 installer.log.1
Anyway, it is not even as if lastlog is open by another process - I checked with lsof.
An interesting mystery!
Tim.