I wrote a little tool you can use to scan a file and punch holes, so make it
sparse.
Confirmed to work on 3.7.0-rc6
Feel free to use it in any way you like, and of course improve it.
http://pastebin.com/8SjEsBLD
Remco Hosman--
To unsubscribe from this list: send the line unsubscribe
On Sun, Nov 18, 2012 at 10:04:29PM +0100, Remco Hosman - Yerf IT wrote:
I wrote a little tool you can use to scan a file and punch holes, so make it
sparse.
Confirmed to work on 3.7.0-rc6
Feel free to use it in any way you like, and of course improve it.
http://pastebin.com/8SjEsBLD
as requested. like this?
---begin
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include fcntl.h
#include sys/types.h
#include sys/stat.h
#include errno.h
#include stdio.h
#include string.h
#include linux/falloc.h
#include unistd.h
#define BLOCKSIZE 4096
int main(int argc,