summaryrefslogtreecommitdiffstats
path: root/fs_mgr/liblp/io_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-10-02 18:22:31 -0700
committerDavid Anderson <dvander@google.com>2018-10-03 12:14:14 -0700
commit5246b6c1836913f68b5773d5afe03f49f7ad8eb7 (patch)
tree087598b4e355175f00f1cdd05b3b766e9436c1aa /fs_mgr/liblp/io_test.cpp
parent4eb864bf7dc98d8efb61ef3236e62942ca9d87c7 (diff)
downloadsystem_core-5246b6c1836913f68b5773d5afe03f49f7ad8eb7.tar.gz
system_core-5246b6c1836913f68b5773d5afe03f49f7ad8eb7.tar.bz2
system_core-5246b6c1836913f68b5773d5afe03f49f7ad8eb7.zip
liblp: Add support for updateable partition groups.
This patch introduces a new "groups" table in the super partition metadata. Each entry denotes a named partition group with a maximum size. All partitions now belong to a group, and the total size of partitions in a group must not exceed its maximum size. This is enforced by MetadataBuilder. There is also a "default" group with no size restriction. This is used for one-off partitions that aren't restricted by updates, for example, the scratch partition for overlayfs, or partitions created through fastbootd. Bug: 116817738 Test: liblp gtest Change-Id: I7049ffd35d326e41e25d01b1748cb53a584783a7
Diffstat (limited to 'fs_mgr/liblp/io_test.cpp')
-rw-r--r--fs_mgr/liblp/io_test.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs_mgr/liblp/io_test.cpp b/fs_mgr/liblp/io_test.cpp
index eda68fd66..f93852b1d 100644
--- a/fs_mgr/liblp/io_test.cpp
+++ b/fs_mgr/liblp/io_test.cpp
@@ -343,9 +343,6 @@ TEST(liblp, TooManyPartitions) {
ASSERT_NE(partition, nullptr);
}
ASSERT_NE(partition, nullptr);
- // Add one extent to any partition to fill up more space - we're at 508
- // bytes after this, out of 512.
- ASSERT_TRUE(builder->ResizePartition(partition, 1024));
unique_ptr<LpMetadata> exported = builder->Export();
ASSERT_NE(exported, nullptr);