From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 17:00:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8837106566B for ; Mon, 2 Feb 2009 17:00:27 +0000 (UTC) (envelope-from testcat2003@yahoo.com) Received: from web33107.mail.mud.yahoo.com (web33107.mail.mud.yahoo.com [209.191.69.137]) by mx1.freebsd.org (Postfix) with SMTP id 6A32F8FC0C for ; Mon, 2 Feb 2009 17:00:27 +0000 (UTC) (envelope-from testcat2003@yahoo.com) Received: (qmail 68492 invoked by uid 60001); 2 Feb 2009 17:00:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=uKnpFLB5dGnnvDneIZtysnV04iMN5fT5yB5KjAjs4lSdBHvClciQ9bGUjyugePimxXNMoxTVIrnD4dIdgYlQb5tfR4bgub3xojPJI9Pjwh+uPBFyIbVkhqXmtuldZdgtvo34tkFYhz8b2/pqdZ9F97oiWwK/pYeYFWKnDgL8t3A=; X-YMail-OSG: BJqOn1IVM1lh9S0iGre1gyLI9bwI0NsPKbIkZHK6j5EZ86DGqmihFztnKdqsAe.eYea1bSzv15nhTb3tQnUgxY_JqmVyfY6RYdaX0CXE0K1BTeneBqH0VqH87vds3Ul5EjEkKDg07kBP6zo2HoIs7BDKt3dz9Pbi6X3DpD9Ts9Vu2Y3s2_6y0xNd1uhSolSmt8GNKWCUFS1oP_iRwfUq.LL8R3EqTrm7XHfe6w-- Received: from [208.6.238.24] by web33107.mail.mud.yahoo.com via HTTP; Mon, 02 Feb 2009 09:00:26 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Mon, 2 Feb 2009 09:00:26 -0800 (PST) From: Wayne To: Dan Nelson In-Reply-To: <20090131213315.GE75802@dan.emsphone.com> MIME-Version: 1.0 Message-ID: <832987.51059.qm@web33107.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: ls -lh show file not displaying correct size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: testcat2003@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2009 17:00:28 -0000 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 duplicate.=20 Wayne --- On Sat, 1/31/09, Dan Nelson wrote: From: Dan Nelson Subject: Re: ls -lh show file not displaying correct size To: "Wayne" Cc: freebsd-questions@freebsd.org Date: Saturday, January 31, 2009, 3:33 PM In the last episode (Jan 31), Wayne said: > Hello, >=20 > 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= f 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 >=20 > So I know that the 256G is wrong. Can any one tell me what is up with fil= e 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. --=20 =09Dan Nelson =09dnelson@allantgroup.com _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" =0A=0A=0A