Re: [SLUG] sparse file

From: Eben King (
Date: Mon Mar 31 2008 - 10:33:12 EST

On Mon, 31 Mar 2008, Matthew Rogers wrote:

> Eben King wrote:
>> How would I create a sparse (no allocated storage) file? Reason: I've got
>> a Bit Torrent client that lets me pick and choose which files to download.
>> Its normal file allocation mode saves space when a torrent is partially
>> downloaded, but all the chunks are crammed together. There is an alternate
>> storage method that allocates all the files from the get-go, and then fills
>> them in as you go. However, it allocates _all_ of them, even if you're
>> only getting a few, and all of them won't fit. I figure that if I go
>> behind its back and replace the files with sparse ones, it should fit.

> touch

I don't see any way in the man page to have it create other than a 0-byte
file. How do you do it?

-eben      QebWenE01R@vTerYizUonI.nOetP
      If you need someone to blame
      Throw a rock in the air
      You'll hit someone guilty -- U2, _Zooropa_, "Dirty Day"
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.

This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:32:14 EDT