Re: Convert one .img disk created with sparse=true to no sparse

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

 



2011-10-21, 07:28(+10), Simon Wilson:
[...]
> If working with a NON-sparse VM img (i.e. originally created with  
> virt-install --nonsparse), does a cp without --sparse=never retain the  
> non-sparse nature of the file, or does it have to be specified?
[...]

See the man page for your "cp" command. The GNU implementation
of "cp" tries to replicate the sparseness of the files by
default, so if the source file wasn't sparse, the destination
shouldn't be either.

If in doubt, you can always use dd/cat/pv to avoid the extra
fancy hole punching that cp might or might not do.

-- 
Stephane

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux