Add the ability to specify a reserved space size when making filesystems.
If you specify a negative length when making a filesystem, then the
filesystem size is the size of the partiton (or image file) minus
the absolute value of the negative length specified.
Change-Id: I53e3b6de2ea692f4678682c3f49ff36429d9ad31
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c
index 3fee133..a366a37 100644
--- a/ext4_utils/make_ext4fs.c
+++ b/ext4_utils/make_ext4fs.c
@@ -249,7 +249,7 @@
u32 root_inode_num;
u16 root_mode;
- if (info.len == 0)
+ if (info.len <= 0)
info.len = get_file_size(filename);
if (info.len <= 0) {