/var/log/lastlog, du and ls Do Not Agree
Bob Chiodini
chiodr at kscems.ksc.nasa.gov
Tue Jun 8 13:16:50 UTC 2004
On Tue, 2004-06-08 at 08:34, Michael Schwendt wrote:
> On Tue, 08 Jun 2004 07:43:42 -0400, Bob Chiodini wrote:
>
> > I was testing UDF on CDRW yesterday and noticed that du and ls do not
> > agree on the size of /var/log/lastlog. This is an ext3 file system.
> >
> > # du -s /var/log/lastlog
> > 52 /var/log/lastlog
> >
> > # ls -l /var/log/lastlog
> > -r-------- 1 root root 19136220 Jun 8 06:32 /var/log/lastlog
>
> -snip-
>
> Sort of a Linux related FAQ. A hint to get you on the right track:
>
> cp --sparse=never /var/log/lastlog /var/tmp
> du -h /var/tmp/lastlog
Thanks. Also, man du indicates a --apparent-size option which will
generate correct feedback for /var/log/lastlog. This option is new
since RH9.
Which is correct, as to actual file system utilization?
Bob...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040608/e11f2eed/attachment-0001.sig>
More information about the fedora-list
mailing list