Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c47400f authored by Yifan Hong's avatar Yifan Hong
Browse files

libdm: GetDmDevicePathByName log warning

Decrease severity so that GetDmDevicePathByName can be used
as an API to check if |name| is mounted in device mapper.

Test: mount devices during OTA
Bug: 110717529
Change-Id: I6b28b6f8efe48f28819004490a037aba47b41ee1
parent abf8ff7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ bool DeviceMapper::GetDmDevicePathByName(const std::string& name, std::string* p
    struct dm_ioctl io;
    InitIo(&io, name);
    if (ioctl(fd_, DM_DEV_STATUS, &io) < 0) {
        PLOG(ERROR) << "DM_DEV_STATUS failed for " << name;
        PLOG(WARNING) << "DM_DEV_STATUS failed for " << name;
        return false;
    }