Re: Is there a "make hole" (truncate in middle) syscall?

From: Måns Rullgård
Date: Fri Dec 05 2003 - 18:28:03 EST


Mike Fedyk <mfedyk@xxxxxxxxxxxxx> writes:

>> I found this paragraph in the man page of GNU cp:
>>
>> --sparse=WHEN
>> always Always make the output file sparse. This is
>> useful when the input file resides on a
>> filesystem that does not support sparse
>> files, but the output file is on a filesys-
>> tem that does.
>
> So with this, you can create sparse files for an entire set of files
> by just cping them? :)

Yes. It won't query the system for where any potential holes in the
source files might be, though, so if there are large holes, cp will
spend unnecessary time crunching through them.

--
Måns Rullgård
mru@xxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/