We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d152c9 + 3b39a9e commit f389e41Copy full SHA for f389e41
fs_mgr/libdm/dm.cpp
@@ -111,8 +111,10 @@ bool DeviceMapper::DeleteDevice(const std::string& name,
111
112
// Check to make sure appropriate uevent is generated so ueventd will
113
// do the right thing and remove the corresponding device node and symlinks.
114
- CHECK(io.flags & DM_UEVENT_GENERATED_FLAG)
115
- << "Didn't generate uevent for [" << name << "] removal";
+ if ((io.flags & DM_UEVENT_GENERATED_FLAG) == 0) {
+ LOG(ERROR) << "Didn't generate uevent for [" << name << "] removal";
116
+ return false;
117
+ }
118
119
if (timeout_ms <= std::chrono::milliseconds::zero()) {
120
return true;
0 commit comments