commit | e4a3da9f51ca1e02179a1e0851f26015f4ec07fa | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Nov 05 18:02:05 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Nov 05 18:02:05 2015 +0000 |
tree | be608dde301d60b99f65325f914fd837549f8de0 | |
parent | 4ea2b0c4acddb4509c741ba0390be7b39e0b9de1 [diff] | |
parent | cc4e3c6002efc42bce314c98909ecfc2d2f2ab02 [diff] |
Merge "uncrypt: remove O_SYNC to avoid time-out failures"
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp index aef4800..6db4382 100644 --- a/uncrypt/uncrypt.cpp +++ b/uncrypt/uncrypt.cpp
@@ -234,7 +234,7 @@ 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));