Re: size discrepancy after tarring a dir

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

 



  On 09/03/2010 03:21 PM, JD wrote:
>    I have two mounted disks,  both ext3 mounted
> as
> /sdb1
> /sdc1
>
> On /sdb1 I have a directory, let's call it dirx.
>
> 1. rm -rf /sdc1/dirx
>
> 2. cd /sdb1
> 3. tar cf - dirx | tar -C /sdc1 -xpf -
>
> Neither dir (/sdb1 and /sdc1) are not accessed by any programs other
> than the tar program (and of course /sdb1 is the shell's CWD).
> The shell's history file is in my home dir.
>
> After tar:
>
> 4. du -sk dirx  /sdc1/dirx
> 2904536    /sdc1/dirx
> 2802124    dirx
>
> So, why this size inflation by 104MiB ?
>
> I repeated the process twice. Same difference.
>
> Other dirs tarred in this way from sdb1 to sdc1 do not show this
> discrepancy.
>
> Dirx contains mp3's.
>
>
>


You may have some sparse files.  Add --sparse to your tar command and 
see what happens.

If the destination was smaller in size, that would account for 
fragmentation.  But since its bigger than the original, it is most 
likely caused by sparse file(s).

Good Luck!
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux