Messages in this thread | | | From | (Måns Rullgård) | Subject | Re: Is there a "make hole" (truncate in middle) syscall? | Date | Sat, 06 Dec 2003 00:25:56 +0100 |
| |
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/
| |