Add debug logs to understand slow update start issue
Test: th
Bug: 352332753
Change-Id: I2d8f99217722479dcae2e2ea0f74bbf112725ce2
diff --git a/fs_mgr/libsnapshot/snapshot.cpp b/fs_mgr/libsnapshot/snapshot.cpp
index 32f6d89..6674378 100644
--- a/fs_mgr/libsnapshot/snapshot.cpp
+++ b/fs_mgr/libsnapshot/snapshot.cpp
@@ -2866,10 +2866,12 @@
}
bool SnapshotManager::UnmapAllSnapshots(LockedFile* lock) {
+ LOG(INFO) << "Lock acquired for " << __FUNCTION__;
std::vector<std::string> snapshots;
if (!ListSnapshots(lock, &snapshots)) {
return false;
}
+ LOG(INFO) << "Found " << snapshots.size() << " partitions with snapshots";
for (const auto& snapshot : snapshots) {
if (!UnmapPartitionWithSnapshot(lock, snapshot)) {