Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2009 09:00:26 -0800 (PST)
From:      Wayne <>
To:        Dan Nelson <>
Subject:   Re: ls -lh show file not displaying correct size
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Thanks for the answer so now for the next question. How do I sync this
file to other FreeBSD servers. I tried using rsync with the --spares
but the size on the other server was on it's way to being the 256G size
and fill up the other server. How would I go about making an exact


--- On Sat, 1/31/09, Dan Nelson <> wrote:
From: Dan Nelson <>
Subject: Re: ls -lh show file not displaying correct size
To: "Wayne" <>
Date: Saturday, January 31, 2009, 3:33 PM

In the last episode (Jan 31), Wayne said:
> Hello,
> I have a db file of FreeBSD 7.1 amd64 that is displaying the wrong size.
This is a db file used by my mail filter software to to Bayes Filtering.
> If I do an ls -l or ls -lh I get
> filter1# ls -l
> total 489024
> -rw-------=A0 1 defang=A0 defang=A0 274992627712 Jan 31 08:33 @@RPTN.db
> filter1# ls -lh
> total 489024
> -rw-------=A0 1 defang=A0 defang=A0=A0 256G Jan 31 08:33 @@RPTN.db
> If I do a du I gecus18-179# du
> 489026=A0 .
> cus18-179# du -h
> 478M=A0=A0=A0 .
> My drive is only 250 Gig and I have it mounted as /var/spool here is my d=
for the whole file system.
> /dev/ad14s1d=A0=A0=A0 226G=A0=A0=A0 810M=A0=A0=A0 207G=A0=A0=A0=A0 0%=A0=
=A0=A0 /var/spool
> So I know that the 256G is wrong. Can any one tell me what is up with fil=
size ?

The 256G is correct.  It's a sparse file (i.e. there are holes in it).=20
"ls -sk" will print the actual disk space occupied by a file.

=09Dan Nelson
_______________________________________________ mailing list
To unsubscribe, send any mail to

Want to link to this message? Use this URL: <>