diff --git a/fs_mgr/libsnapshot/cow_api_test.cpp b/fs_mgr/libsnapshot/cow_api_test.cpp index 3d0321f7a..1408244ca 100644 --- a/fs_mgr/libsnapshot/cow_api_test.cpp +++ b/fs_mgr/libsnapshot/cow_api_test.cpp @@ -272,7 +272,6 @@ TEST_F(CowTest, GetSize) { } TEST_F(CowTest, Append) { - cow_->DoNotRemove(); CowOptions options; auto writer = std::make_unique(options); ASSERT_TRUE(writer->Initialize(cow_->fd)); diff --git a/fs_mgr/libsnapshot/cow_writer.cpp b/fs_mgr/libsnapshot/cow_writer.cpp index ec2dc9601..f2692dc8c 100644 --- a/fs_mgr/libsnapshot/cow_writer.cpp +++ b/fs_mgr/libsnapshot/cow_writer.cpp @@ -247,7 +247,7 @@ bool CowWriter::OpenForAppend(uint64_t label) { } if (!found_label) { - PLOG(ERROR) << "Failed to find last label"; + LOG(ERROR) << "Failed to find last label"; return false; } diff --git a/fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h b/fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h index c031d63b2..0f47622c6 100644 --- a/fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h +++ b/fs_mgr/libsnapshot/include/libsnapshot/cow_writer.h @@ -114,7 +114,6 @@ class CowWriter : public ICowWriter { bool OpenForWrite(); bool OpenForAppend(); bool OpenForAppend(uint64_t label); - bool ImportOps(std::unique_ptr iter); bool GetDataPos(uint64_t* pos); bool WriteRawData(const void* data, size_t size); bool WriteOperation(const CowOperation& op, const void* data = nullptr, size_t size = 0);