commit | 91bab464eda734089b5bd7a45c033e33475492f4 | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Tue Oct 17 23:38:48 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 17 23:38:48 2023 +0000 |
tree | 4bb211f0396ed50beb4f4ff9580345264dbc456d | |
parent | e48b3235cbc1f4860b0e43b12240a98693581871 [diff] | |
parent | f8c50df1c74c5f72d38514050dfc3a7fd32c0c6d [diff] |
Merge "Remove v2_writer lseek call" into main
diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index a6f449f..63bed07 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp
@@ -262,11 +262,6 @@ return false; } - if (lseek(fd_.get(), sizeof(CowHeader) + header_.buffer_size, SEEK_SET) < 0) { - PLOG(ERROR) << "lseek failed"; - return false; - } - InitPos(); InitBatchWrites();