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

Commit c21eb6e3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Call sync() to guarantee blocks were released by unlink" into main am: 2d4d60cc

parents ea392587 2d4d60cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ static_assert(sizeof(off_t) == sizeof(uint64_t));
static inline void cleanup(const std::string& file_path, bool created) {
    if (created) {
        unlink(file_path.c_str());
        sync();
    }
}