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

Commit 53b541ed authored by Yo Chiang's avatar Yo Chiang Committed by Automerger Merge Worker
Browse files

Merge "Explicitly cast to 64bit integer when calculating filesystem size" am:...

Merge "Explicitly cast to 64bit integer when calculating filesystem size" am: 10a8797c am: 83f5476b am: 4707ce16

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1586546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1fbf9cf7d7624a1e7b8e3feaf828c4794b840621
parents 8330d891 4707ce16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ bool fs_mgr_filesystem_has_space(const std::string& mount_point) {
    static constexpr unsigned long kSizeThreshold = 8 * 1024 * 1024;  // 8MB

    return (vst.f_bfree >= (vst.f_blocks * kPercentThreshold / 100)) &&
           (vst.f_bfree * vst.f_bsize) >= kSizeThreshold;
           (static_cast<uint64_t>(vst.f_bfree) * vst.f_frsize) >= kSizeThreshold;
}

const auto kPhysicalDevice = "/dev/block/by-name/"s;