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

This commit is contained in:
Tao Bao
2015-11-05 18:02:05 +00:00
committed by Gerrit Code Review
+1 -1
View File
@@ -234,7 +234,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
int wfd = -1; int wfd = -1;
unique_fd wfd_holder(wfd); unique_fd wfd_holder(wfd);
if (encrypted) { if (encrypted) {
wfd = open(blk_dev, O_WRONLY | O_SYNC); wfd = open(blk_dev, O_WRONLY);
wfd_holder = unique_fd(wfd); wfd_holder = unique_fd(wfd);
if (wfd == -1) { if (wfd == -1) {
ALOGE("failed to open fd for writing: %s\n", strerror(errno)); ALOGE("failed to open fd for writing: %s\n", strerror(errno));