What's the reason behind the difference in reported file sizes?
[root@localhost]# ls -lah sendlog -rw-rw-r-- 1 mail mail 1.3T Aug 15 17:30 sendlog [root@localhost]# du -m sendlog 24M sendlog
This came to our attention when a server's backup kept failing for quota issues, so it wasn't only "ls" which was seeing this wrong size.
Terms like "sparse files" and "block assignment" are coming to mind, but I'm not sure why it would happen or the real reason behind it. Obviously there is a difference in the ways the two commands check size, am I right always trusting du?
FYI, this should be a pretty standard mail log file.