lkml.org 
[lkml]   [2003]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is there a "make hole" (truncate in middle) syscall?
Date
Mike Fedyk <mfedyk@matchmail.com> 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@kth.se

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

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.054 / U:74.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site