On 2014-07-02 16:37, Per Jessen wrote:
jdd wrote:
Le 02/07/2014 15:29, Bernhard Voelker a écrit :
That's a nice trick. I'd guess that it doesn't work with all file system types, as this assumes that the underlying file system doesn't somehow move the data along. I'm unsure if any does, but e.g. via - I know, a bad choice - NFS, the loop module couldn't rely on this assumption.
you can have any linux filesystem on loop device, but you need to create at first the file with the total size, wich is not bery practical for hudge partitions
Maybe you could use "truncate" to create a sparse file?
In theory, yes. I believe that vmware uses that trick for its virtual disks. But I also believe that it makes access slower, because the file can not be mapped for fast access, or not that easily. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)