Commit 66e9bfa9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

DeviceLister: Add some logging when resolving through device mapper

parent 356cadfa
......@@ -137,6 +137,7 @@ std::string DeviceLister::deviceFromDeviceMapper( const std::string& devicePath
<< devicePath << " (" << strerror(errno) << ')';
throw std::runtime_error( err.str() );
}
LOG_INFO( "Resolved ", devicePath, " to ", linkPath, " device mapper" );
const auto dmName = utils::file::fileName( linkPath );
std::string dmSlavePath = "/sys/block/" + dmName + "/slaves";
std::unique_ptr<DIR, int(*)(DIR*)> dir( opendir( dmSlavePath.c_str() ), &closedir );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment