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

Commit ada68d3e authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Merge "Fix directory comparison in tryMountDataMirror" am: 156e28ff am: 295eed4f

parents fcfda777 295eed4f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3571,10 +3571,10 @@ binder::Status InstalldNativeService::tryMountDataMirror(
        return error("Failed to stat " + mirrorVolCePath);
    }

    if (mirrorCeStat.st_ino == ceStat.st_ino) {
    if (mirrorCeStat.st_ino == ceStat.st_ino && mirrorCeStat.st_dev == ceStat.st_dev) {
        // As it's being called by prepareUserStorage, it can be called multiple times.
        // Hence, we if we mount it already, we should skip it.
        LOG(WARNING) << "CE dir is mounted already: " + cePath;
        LOG(INFO) << "CE dir is mounted already: " + cePath;
        return ok();
    }