aboutsummaryrefslogtreecommitdiff
path: root/volume_manager
diff options
context:
space:
mode:
authorNolen Johnson <johnsonnolen@gmail.com>2022-04-05 14:59:35 -0400
committerMichael Bestas <mkbestas@lineageos.org>2022-08-29 23:07:51 +0300
commitf15848dce8907dbedbcc344ec77767da041a3ff5 (patch)
tree591ce783a1471498ec984711566ea06e0a8d7df6 /volume_manager
parentd62d93914221baab714cded38f8ea7064353e81c (diff)
volume_manager: Move bind/mount failure from ERROR to WARNING
* Prevents users from seeing this message on FBE devices: `failed to bind mount /mnt/staging/emulated/media/0 to /storage/emulated` * FDE users already have the workaround in line 75. Change-Id: I47d1aaf1a5a85a46fd52dc924a91b378cd800b2d
Diffstat (limited to 'volume_manager')
-rw-r--r--volume_manager/EmulatedVolume.cpp1
-rw-r--r--volume_manager/Utils.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/volume_manager/EmulatedVolume.cpp b/volume_manager/EmulatedVolume.cpp
index 88eb7d98..a1a0756c 100644
--- a/volume_manager/EmulatedVolume.cpp
+++ b/volume_manager/EmulatedVolume.cpp
@@ -77,7 +77,6 @@ status_t EmulatedVolume::doMount() {
return -EIO;
}
if (BindMount(bindPath, getPath()) != OK) {
- PLOG(ERROR) << getId() << " failed to bind mount " << bindPath << " on " << getPath();
ForceUnmount(kStagingPath);
return -EIO;
}
diff --git a/volume_manager/Utils.cpp b/volume_manager/Utils.cpp
index b8cf4eb9..1a0a9403 100644
--- a/volume_manager/Utils.cpp
+++ b/volume_manager/Utils.cpp
@@ -187,7 +187,7 @@ status_t KillProcessesUsingPath(const std::string& path) {
status_t BindMount(const std::string& source, const std::string& target) {
if (::mount(source.c_str(), target.c_str(), "", MS_BIND, NULL)) {
- PLOG(ERROR) << "Failed to bind mount " << source << " to " << target;
+ PLOG(WARNING) << "Failed to bind mount " << source << " to " << target;
return -errno;
}
return OK;