summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYo Chiang <yochiang@google.com>2020-10-21 21:34:00 +0800
committerYo Chiang <yochiang@google.com>2020-10-22 15:37:52 +0800
commit567e51a1b615e24dfe0c8423be09ba55c3d39fab (patch)
tree57101563d3e269100e3d5712efd054cb67065cc6
parent53ad534d6f763cb00844a83c80c9a8a050c9a657 (diff)
downloadgsid-567e51a1b615e24dfe0c8423be09ba55c3d39fab.tar.gz
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
-rw-r--r--include/libgsi/libgsi.h3
1 files changed, 3 insertions, 0 deletions
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