As I understood, "sparse file" means that the file may have 'gaps' so the actual used data may be smaller than the logical file size.
How do Linux file systems save files on disk? I'm mainly interested in ext4. But:
- Can a file be saved not sequentially on disk? By that, I mean that part of the file is located at physical address X and the next part at physical address Y which isn't close to X + offset).
- Can I somehow control the file sequentiality?
I want to allocate a file of 10GB. I want it to be sequential on disk and not divided between different offsets. - Does it act differently between the different types?
dmsetupprogram, an interface to device mapper. This may be a good choice if you are planning a database-like storage.iso9660andromfsare incapable of doing that and require continuous storage (of these I can list off-head).