From 567e51a1b615e24dfe0c8423be09ba55c3d39fab Mon Sep 17 00:00:00 2001 From: Yo Chiang Date: Wed, 21 Oct 2020 21:34:00 +0800 Subject: Add constants kDsuScratch and kDsuUserdata These partitions names are special devices used by DSU. kDsuScratch is the scratch partition used by fs_mgr_overlayfs. kDsuUserdata is the userdata partition used by fs_mgr_fstab. fs_mgr_fstab.cpp:TransformFstabForDsu recognizes these special constants and skip handling these devices. Bug: 165925766 Test: Install and boot a DSU. Change-Id: I08fc653218fb47acbb370a4470259eae3970c91f --- include/libgsi/libgsi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libgsi/libgsi.h b/include/libgsi/libgsi.h index ed47767..b210427 100644 --- a/include/libgsi/libgsi.h +++ b/include/libgsi/libgsi.h @@ -53,6 +53,9 @@ static constexpr char kGsiInstalledProp[] = "gsid.image_installed"; static constexpr char kDsuPostfix[] = "_gsi"; +inline constexpr char kDsuScratch[] = "scratch_gsi"; +inline constexpr char kDsuUserdata[] = "userdata_gsi"; + static constexpr int kMaxBootAttempts = 1; // Get the currently active dsu slot -- cgit v1.2.3