search for: g8e6fc32

Displaying 3 results from an estimated 3 matches for "g8e6fc32".

2013 Oct 22
0
[PATCH 0/2] pxzcat preallocation
...files without fragmentation. It preallocates the file, then discards extents that weren't written. This relies on Linux syscalls. Preallocate output file Discard unwritten ranges pxzcat.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) -- 1.8.4.1.563.g8e6fc32
2013 Oct 22
1
[PATCH 2/2] Discard unwritten ranges
...%s", outputfile); + } + if (fallocate (ofd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, hole_start, data_start - hole_start) == -1) + error (EXIT_FAILURE, errno, "fallocate: %s", outputfile); + } + close (fd); } static int check_header_magic (int fd) -- 1.8.4.1.563.g8e6fc32
2013 Oct 22
2
[PATCH 1/2] Preallocate output file
...utfile); + if (fallocate (ofd, 0, 0, size) == -1) + error (EXIT_FAILURE, errno, "fallocate: %s", outputfile); /* Tell the kernel we won't read the output file. */ posix_fadvise (fd, 0, 0, POSIX_FADV_RANDOM|POSIX_FADV_DONTNEED); /* Iterate over blocks. */ -- 1.8.4.1.563.g8e6fc32