Re: accurate file size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Oct 14, 2007, Stephen Harris wrote:
>On Sun, Oct 14, 2007 at 04:30:16PM -0400, centos@xxxxxxxxxxxxxx wrote:
>> Hello
>> 
>> I was copying some files from one server to other,
>> that I relized the total file size ( sum of all files )
>> in one server is a bit more than the one that copied from
>> ( about 6 when I do du -s )
>
>"du" takes into account block sizes and so on, so may not be the same on
>two different machines.  "ls -l" shows the exact size per file.

There may also be differences if the file system types are
different between the systems (e.g. reiserfs vs ext3).

There is overhead on all file systems, so that a fresh, empty
file system will have less free space than one might expect based
on the size of the disk, number of sectors, and block size.

I would expect that a newly built file system would have more
available space after loading files from another system would
have a bit more free space, all other things being equal, because
new files would likely be in contiguous space, not spread about
as may happen with growing database files.

Bill
--
INTERNET:   bill@xxxxxxxxxxxxx  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

You know the one thing that's wrong with this country? Everyone gets a
chance to have their fair say.
    -Bill Clinton, May 29, 1993, The White House
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux