Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "fastboot: change default sparse limit to disabled"
Browse files Browse the repository at this point in the history
  • Loading branch information
colincross authored and android code review committed Jul 25, 2012
2 parents f650c07 + 0bbfb39 commit 23ee469
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fastboot/fastboot.c
Expand Up @@ -54,8 +54,6 @@
#define O_BINARY 0
#endif

#define DEFAULT_SPARSE_LIMIT (256 * 1024 * 1024)

char cur_product[FB_RESPONSE_SZ + 1];

void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline);
Expand Down Expand Up @@ -281,7 +279,7 @@ void usage(void)
" -b <base_addr> specify a custom kernel base address\n"
" -n <page size> specify the nand page size. default: 2048\n"
" -S <size>[K|M|G] automatically sparse files greater than\n"
" size. default: 256M, 0 to disable\n"
" size. 0 to disable\n"
);
}

Expand Down Expand Up @@ -535,7 +533,7 @@ static int64_t get_sparse_limit(struct usb_handle *usb, int64_t size)
if (target_sparse_limit > 0) {
limit = target_sparse_limit;
} else {
limit = DEFAULT_SPARSE_LIMIT;
return 0;
}
}

Expand Down

0 comments on commit 23ee469

Please sign in to comment.