summaryrefslogtreecommitdiff
path: root/ext4_utils/ext4_utils.h
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2011-01-14 18:33:06 -0800
committerKen Sumrall <ksumrall@android.com>2011-01-14 18:33:06 -0800
commit435a8b61e925e3efb22fce08612efe210e83f791 (patch)
tree92d2a318cb995e7f0f62d01173c00f298919dadb /ext4_utils/ext4_utils.h
parentf3df372c18c3baf9c0c9c93bce7622818ae6a8a1 (diff)
downloadextras-435a8b61e925e3efb22fce08612efe210e83f791.tar.gz
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
Diffstat (limited to 'ext4_utils/ext4_utils.h')
-rw-r--r--ext4_utils/ext4_utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext4_utils/ext4_utils.h b/ext4_utils/ext4_utils.h
index 8f3a64d7..b770294e 100644
--- a/ext4_utils/ext4_utils.h
+++ b/ext4_utils/ext4_utils.h
@@ -76,6 +76,7 @@ extern int force;
#define __u8 u8
typedef unsigned long long u64;
+typedef signed long long s64;
typedef unsigned int u32;
typedef unsigned short int u16;
typedef unsigned char u8;
@@ -94,7 +95,9 @@ struct ext2_group_desc {
};
struct fs_info {
- u64 len;
+ s64 len; /* If set to 0, ask the block device for the size,
+ * if less than 0, reserve that much space at the
+ * end of the partition, else use the size given. */
u32 block_size;
u32 blocks_per_group;
u32 inodes_per_group;