From owner-freebsd-questions@FreeBSD.ORG Sat Sep 29 15:00:42 2007 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 E612D16A417 for ; Sat, 29 Sep 2007 15:00:42 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by mx1.freebsd.org (Postfix) with ESMTP id 899CC13C468 for ; Sat, 29 Sep 2007 15:00:42 +0000 (UTC) (envelope-from modulok@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1480456wra for ; Sat, 29 Sep 2007 08:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=VCJ24sotsD9b+Er+qlIhyNNfDlhobX1CeV8MFenF/zc=; b=g1IVKiaVy5qiGHzizSPrXDQH+lHuWn5PZWN4fMXyhlHMjoN7TvJbIznqghphaKjBMoku/VNWQVAdBl90Y3cmMk39XDjg00FshjXci2UJUsnYzrOkQ+dJQLbClPf4RBkNyOMTzqwoUJs11+xK6RpYWKqKYakhlS+FXqqT1OUqpBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BkrOhCsuTtLDFq8J+9+JW6cA0wPPxAm00V60q+ZnDaU8PjV4XLKxfV+u9pXyFuRCjWAG8koGk7yrMCbis7KIRLHSJzQ50r0OCDB1Y6W2+3aCrmLlyWNM3dcR8YXOG9cWuBCF2TPwuUYX0AMUSuhZNIJYYmX1NIoFJnanXJnN6bI= Received: by 10.90.92.10 with SMTP id p10mr1001061agb.1191078041645; Sat, 29 Sep 2007 08:00:41 -0700 (PDT) Received: by 10.140.207.2 with HTTP; Sat, 29 Sep 2007 08:00:41 -0700 (PDT) Message-ID: <64c038660709290800q331e15bel26273dc14587ce0e@mail.gmail.com> Date: Sat, 29 Sep 2007 09:00:41 -0600 From: Modulok To: freebsd-questions@freebsd.org In-Reply-To: <20070928201528.GB62033@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <64c038660709281127j1df4835bxcbfe4495600fd6d7@mail.gmail.com> <20070928201528.GB62033@dan.emsphone.com> Cc: Dan Nelson Subject: Re: File size discrepancies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2007 15:00:43 -0000 > du doesn't count in bytes; it counts in disk blocks or KB. A 12KB > difference is probably just due to better packing of directories in > your newly-created tree as compared to your orignal one. To figure out > where the difference is, run "du -a" in both trees and diff the two > outputs. What I did to try and track down the problem: du -a ./dirA | sort -n > dirA.tmp; du -a ./dirB | sort -n > dirB.tmp; diff dirA.tmp dirB.tmp; # Exerp of the diff output: < 554372 ./images > 554362 ./images < 17007468 ./video > 17007466 ./video The size discrepancy is the size of the directories, not the files contained within those directories. To be sure I ran: diff -r dirA/images dirB/images; There appears to be no difference in the contents. >du doesn't count in bytes; it counts in disk blocks or KB. A 12KB >difference is probably just due to better packing of directories in >your newly-created tree as compared to your orignal one. So, the size of a directory itself can differ when the contents is identical? This is news to me. Thanks. -Modulok-