summaryrefslogtreecommitdiffstats
path: root/install/include/install/snapshot_utils.h
diff options
context:
space:
mode:
authorAlessio Balsini <balsini@google.com>2020-01-07 21:30:18 +0100
committerandroid-build-merger <android-build-merger@google.com>2020-01-07 21:30:18 +0100
commitbc4b2b44e93ab1fc59ba3c564a4ab198d14188f2 (patch)
tree75518fe845376382f12a8ee70691a1cf0c00c387 /install/include/install/snapshot_utils.h
parentMerge "Link libvndksupport dynamically instead of statically." (diff)
parentMerge "Mount snapshotted /system in Virtual A/B devices" (diff)
downloadandroid_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar.gz
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar.bz2
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar.lz
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar.xz
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.tar.zst
android_bootable_recovery-bc4b2b44e93ab1fc59ba3c564a4ab198d14188f2.zip
Diffstat (limited to 'install/include/install/snapshot_utils.h')
-rw-r--r--install/include/install/snapshot_utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/install/include/install/snapshot_utils.h b/install/include/install/snapshot_utils.h
index 00c3ef7e1..f4b978d2e 100644
--- a/install/include/install/snapshot_utils.h
+++ b/install/include/install/snapshot_utils.h
@@ -19,3 +19,12 @@
#include "recovery_ui/device.h"
bool FinishPendingSnapshotMerges(Device* device);
+
+/*
+ * This function tries to create the snapshotted devices in the case a Virtual
+ * A/B device is updating.
+ * The function returns false in case of critical failure that would prevent
+ * the further mountings of devices, or true in case of success, if either the
+ * devices were created or there was no need to.
+ */
+bool CreateSnapshotPartitions();