diff options
author | Ken Sumrall <ksumrall@android.com> | 2010-08-13 16:04:49 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2010-08-13 19:14:22 -0700 |
commit | 75249edab0b22ea9aae9c7278b9f2c196c7d25d4 (patch) | |
tree | f3cafefb2cf2f5c219c6e4d287c7e2032d901aab /ext4_utils/ext4_utils.h | |
parent | 6bd2b5d80db5630cb73e3e5a4be3b38afa241c5a (diff) | |
download | extras-75249edab0b22ea9aae9c7278b9f2c196c7d25d4.tar.gz |
Add support for sparse ext4 image creation.
This adds the -s option to the make_ext4fs tool, which now creates
"sparse" filesystem images, which is very useful for the large 32 Gbyte
filesystems we are now building.
This check-in also fixes make_ext4fs to properly create filesystems
larger thatn 4 Gbytes on 64-bit Linux, 32-bit android and Macs.
Change-Id: Ie5838492fcf944f5c875481693c0dbd7013deae4
Diffstat (limited to 'ext4_utils/ext4_utils.h')
-rw-r--r-- | ext4_utils/ext4_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/ext4_utils.h b/ext4_utils/ext4_utils.h index 0a2b542a..697c8d90 100644 --- a/ext4_utils/ext4_utils.h +++ b/ext4_utils/ext4_utils.h @@ -116,7 +116,7 @@ static inline int log_2(int j) } int ext4_bg_has_super_block(int bg); -void write_ext4_image(const char *filename, int gz); +void write_ext4_image(const char *filename, int gz, int sparse); void ext4_create_fs_aux_info(void); void ext4_free_fs_aux_info(void); void ext4_fill_in_sb(void); |