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

Commit 8b5f9d74 authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "uncrypt: remove O_SYNC to avoid time-out failures"

am: e4a3da9f

* commit 'e4a3da9f':
  uncrypt: remove O_SYNC to avoid time-out failures
parents c40d9afa e4a3da9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
    int wfd = -1;
    unique_fd wfd_holder(wfd);
    if (encrypted) {
        wfd = open(blk_dev, O_WRONLY | O_SYNC);
        wfd = open(blk_dev, O_WRONLY);
        wfd_holder = unique_fd(wfd);
        if (wfd == -1) {
            ALOGE("failed to open fd for writing: %s\n", strerror(errno));