# HG changeset patch # User Pascal Bellard # Date 1427964384 -7200 # Node ID bbffbcf032d1505cde1348ff2276b12aa4631a86 # Parent f0ffe7691d2b3729080cbc6fb0bede2cfcedcedb fusecloop/extract_compressed_fs: large file support diff -r f0ffe7691d2b -r bbffbcf032d1 fusecloop/stuff/fusecloop.u --- a/fusecloop/stuff/fusecloop.u Thu Apr 02 11:39:58 2015 +0300 +++ b/fusecloop/stuff/fusecloop.u Thu Apr 02 10:46:24 2015 +0200 @@ -144,7 +144,7 @@ --- extract_compressed_fs.c +++ extract_compressed_fs.c -@@ -1,15 +1,19 @@ +@@ -1,19 +1,23 @@ /* Extracts a filesystem back from a compressed fs file */ +#define _LARGEFILE64_SOURCE #include "common_header.h" @@ -166,6 +166,11 @@ exit(1); } +- handle = open(argv[1], O_RDONLY); ++ handle = open(argv[1], O_RDONLY|O_LARGEFILE); + if (handle < 0) { + perror("Opening compressed file\n"); + exit(1); @@ -24,44 +28,99 @@ exit(1); }