search for: xzfile_uncompress

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

2013 Oct 22
1
[PATCH 2/2] Discard unwritten ranges
...xzcat.c @@ -44,10 +44,11 @@ #include <sys/types.h> #include <error.h> #include <errno.h> #include <getopt.h> #include <pthread.h> +#include <linux/falloc.h> #include <lzma.h> #define DEBUG 0 @@ -145,10 +146,11 @@ usage (int exitcode) static void xzfile_uncompress (const char *filename, const char *outputfile, unsigned nr_threads) { int fd, ofd; + off_t hole_start, data_start; uint64_t size; lzma_index *idx; /* Open the file. */ fd = open (filename, O_RDONLY); @@ -176,10 +178,29 @@ xzfile_uncompress (const char *filename...
2013 Oct 22
2
[PATCH 1/2] Preallocate output file
...LUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ +#define _GNU_SOURCE #include <config.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -166,12 +167,12 @@ xzfile_uncompress (const char *filename, const char *outputfile, debug ("uncompressed size = %" PRIu64 " bytes", size); ofd = open (outputfile, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, 0644); if (ofd == -1) error (EXIT_FAILURE, errno, "open: %s", outputfile); - if (ftruncate (...
2013 Oct 23
0
Re: [PATCH 1/2] Preallocate output file
...Y WAY OUT > * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > */ > +#define _GNU_SOURCE > #include <config.h> > #include <stdio.h> > #include <stdlib.h> > #include <string.h> > @@ -166,12 +167,12 @@ xzfile_uncompress (const char *filename, const > char *outputfile, > debug ("uncompressed size = %" PRIu64 " bytes", size); > ofd = open (outputfile, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, 0644); > if (ofd == -1) > error (EXIT_FAILURE, errno, "open: %s", output...