summaryrefslogtreecommitdiff
path: root/fs_mgr/libsnapshot/utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fs_mgr/libsnapshot/utility.cpp')
-rw-r--r--fs_mgr/libsnapshot/utility.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/fs_mgr/libsnapshot/utility.cpp b/fs_mgr/libsnapshot/utility.cpp
index 4a2af1c10..d32b61eaa 100644
--- a/fs_mgr/libsnapshot/utility.cpp
+++ b/fs_mgr/libsnapshot/utility.cpp
@@ -22,7 +22,6 @@
#include <android-base/file.h>
#include <android-base/logging.h>
-#include <android-base/properties.h>
#include <android-base/strings.h>
#include <fs_mgr/roots.h>
@@ -92,7 +91,7 @@ AutoDeleteSnapshot::~AutoDeleteSnapshot() {
}
}
-Return InitializeKernelCow(const std::string& device) {
+Return InitializeCow(const std::string& device) {
// When the kernel creates a persistent dm-snapshot, it requires a CoW file
// to store the modifications. The kernel interface does not specify how
// the CoW is used, and there is no standard associated.
@@ -183,17 +182,5 @@ void AppendExtent(RepeatedPtrField<chromeos_update_engine::Extent>* extents, uin
new_extent->set_num_blocks(num_blocks);
}
-bool IsCompressionEnabled() {
- return android::base::GetBoolProperty("ro.virtual_ab.compression.enabled", false);
-}
-
-std::string GetOtherPartitionName(const std::string& name) {
- auto suffix = android::fs_mgr::GetPartitionSlotSuffix(name);
- CHECK(suffix == "_a" || suffix == "_b");
-
- auto other_suffix = (suffix == "_a") ? "_b" : "_a";
- return name.substr(0, name.size() - suffix.size()) + other_suffix;
-}
-
} // namespace snapshot
} // namespace android