diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index a6f449faa..63bed0741 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp @@ -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();