summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-18 15:22:47 -0700
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-18 15:22:47 -0700
commit92d29690f16cdbba244b523c9110cb9af999d22e (patch)
treeb47d1a2d2fa7273fb5ae4a29da43b725fd84836c /filesystem/filesystem.go
parent772924a7a7cc9378777ca3fd1d8752d15aec8acc (diff)
parent62eacaeb4ebf5e9b60590a3cb1a3b90533aadd96 (diff)
Merge "Add vintf info and userdata size to Soong's misc_info.txt" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 846e2e5e4..f8faa496f 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -1175,6 +1175,10 @@ func (f *filesystem) buildPropFileForMiscInfo(ctx android.ModuleContext) android
// effect as <partition name>_disable_sparse.
if f.properties.Partition_size == nil {
addStr(f.partitionName()+"_disable_sparse", "true")
+ } else if f.partitionName() == "userdata" {
+ // Add userdata's partition size to misc_info.txt.
+ // userdata has been special-cased to make the make packaging misc_info.txt implementation
+ addStr("userdata_size", strconv.FormatInt(*f.properties.Partition_size, 10))
}
fst := f.fsType(ctx)