summaryrefslogtreecommitdiff
path: root/ext4_utils/extent.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-12-22 18:40:14 -0800
committerColin Cross <ccross@android.com>2011-01-05 15:35:58 -0800
commit33f96c66e9a1f2e266a75e5e84c091dffa6ef118 (patch)
tree6e9a08128cd925d464bc2bb209f1f1874dc9a11d /ext4_utils/extent.c
parent22742ce739a046a079b2e1b03342a25472dfa352 (diff)
downloadextras-33f96c66e9a1f2e266a75e5e84c091dffa6ef118.tar.gz
ext4_utils: Add support for >2G input files
Change-Id: I6af69d676610099d3912e90fcab3cbdc27ace4e2
Diffstat (limited to 'ext4_utils/extent.c')
-rw-r--r--ext4_utils/extent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext4_utils/extent.c b/ext4_utils/extent.c
index 1d2581d9..daa25413 100644
--- a/ext4_utils/extent.c
+++ b/ext4_utils/extent.c
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-#include <stdlib.h>
-#include <stdio.h>
-
#include "ext4_utils.h"
#include "ext4.h"
#include "ext4_extents.h"
#include "backed_block.h"
-
#include "extent.h"
+#include <stdlib.h>
+#include <stdio.h>
+
+
/* Creates data buffers for the first backing_len bytes of a block allocation
and queues them to be written */
static u8 *extent_create_backing(struct block_allocation *alloc,
@@ -55,7 +55,7 @@ static u8 *extent_create_backing(struct block_allocation *alloc,
static void extent_create_backing_file(struct block_allocation *alloc,
u64 backing_len, const char *filename)
{
- off_t offset = 0;
+ off64_t offset = 0;
for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
u32 region_block;
u32 region_len;