summaryrefslogtreecommitdiffstats
path: root/fs_mgr/fs_mgr_dm_linear.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-08-03 10:12:16 -0700
committerDavid Anderson <dvander@google.com>2018-08-03 10:59:43 -0700
commitb9f734c9362af1eada8783fae6d93943aab0ecd7 (patch)
tree3fffd02e9c2cfe48fb5a4f5231c2aa8b1b1990ec /fs_mgr/fs_mgr_dm_linear.cpp
parent615745cead3d368b974f468efd6545e87f74b474 (diff)
downloadsystem_core-b9f734c9362af1eada8783fae6d93943aab0ecd7.tar.gz
system_core-b9f734c9362af1eada8783fae6d93943aab0ecd7.tar.bz2
system_core-b9f734c9362af1eada8783fae6d93943aab0ecd7.zip
liblp: Add more logging for logical partition operations.
This logs when partition tables update, when partitions resize, and when partitions are unmapped from device mapper. Bug: N/A Test: N/A Change-Id: I1125332c79fccc3ebc556b3b48856901e2503c47
Diffstat (limited to 'fs_mgr/fs_mgr_dm_linear.cpp')
-rw-r--r--fs_mgr/fs_mgr_dm_linear.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs_mgr/fs_mgr_dm_linear.cpp b/fs_mgr/fs_mgr_dm_linear.cpp
index 05e03e152..aa68ceb18 100644
--- a/fs_mgr/fs_mgr_dm_linear.cpp
+++ b/fs_mgr/fs_mgr_dm_linear.cpp
@@ -133,7 +133,11 @@ bool CreateLogicalPartition(const std::string& block_device, uint32_t metadata_s
bool DestroyLogicalPartition(const std::string& name) {
DeviceMapper& dm = DeviceMapper::Instance();
- return dm.DeleteDevice(name);
+ if (!dm.DeleteDevice(name)) {
+ return false;
+ }
+ LINFO << "Unmapped logical partition " << name;
+ return true;
}
} // namespace fs_mgr