summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2016-05-16 09:36:07 +0200
committergkostka <kostka.grzegorz@gmail.com>2016-05-16 09:48:52 +0200
commit06382010385758c11ab9e643751c88c7e969ca34 (patch)
tree29e02716ac8beb0c6fca381ceb172a5b44122e3b /include
parenta59596c45bfaa80d532ed7f9ef2c6c87f8ef5340 (diff)
ext4_mbr: introduce ext4_mbr_write procedure
Diffstat (limited to 'include')
-rw-r--r--include/ext4_mbr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ext4_mbr.h b/include/ext4_mbr.h
index 2fc91f2..6301e66 100644
--- a/include/ext4_mbr.h
+++ b/include/ext4_mbr.h
@@ -53,7 +53,11 @@ int ext4_mbr_scan(struct ext4_blockdev *parent, struct ext4_mbr_bdevs *bdevs);
/**@brief Master boot record partitions*/
struct ext4_mbr_parts {
- uint64_t size[4];
+
+ /**@brief Percentage division tab:
+ * - {50, 20, 10, 20}
+ * Sum of all 4 elements must be <= 100*/
+ uint8_t division[4];
};
int ext4_mbr_write(struct ext4_blockdev *parent, struct ext4_mbr_parts *parts);