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

Commit f8c50df1 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

Remove v2_writer lseek call

Removing lseek call as writefully() should be sufficient in ensuring our
fd is moved to the correct spot

Test: cow_api_test
Change-Id: I404b192335ab1672ed61de426e17e63ab9d51ece
parent 94a732e0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -262,11 +262,6 @@ bool CowWriterV2::OpenForWrite() {
        return false;
    }

    if (lseek(fd_.get(), sizeof(CowHeader) + header_.buffer_size, SEEK_SET) < 0) {
        PLOG(ERROR) << "lseek failed";
        return false;
    }

    InitPos();
    InitBatchWrites();