Home
last modified time | relevance | path

Searched refs:cow_ (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dcow_api_test.cpp38 cow_ = std::make_unique<TemporaryFile>(); in SetUp()
39 ASSERT_GE(cow_->fd, 0) << strerror(errno); in SetUp()
42 virtual void TearDown() override { cow_ = nullptr; } in TearDown()
44 std::unique_ptr<TemporaryFile> cow_; member in android::snapshot::CowTest
70 ASSERT_TRUE(writer.Initialize(cow_->fd)); in TEST_F()
80 ASSERT_EQ(lseek(cow_->fd, 0, SEEK_SET), 0); in TEST_F()
85 ASSERT_TRUE(reader.Parse(cow_->fd)); in TEST_F()
149 ASSERT_TRUE(writer.Initialize(cow_->fd)); in TEST_F()
157 ASSERT_EQ(lseek(cow_->fd, 0, SEEK_SET), 0); in TEST_F()
160 ASSERT_TRUE(reader.Parse(cow_->fd)); in TEST_F()
[all …]
Dsnapshot_writer.cpp58 cow_ = std::make_unique<CowWriter>(options_); in SetCowDevice()
63 return cow_->Finalize(); in Finalize()
67 return cow_->GetCowSize(); in GetCowSize()
101 return cow_->AddCopy(new_block, old_block); in EmitCopy()
106 return cow_->AddRawBlocks(new_block_start, data, size); in EmitRawBlocks()
110 return cow_->AddZeroBlocks(new_block_start, num_blocks); in EmitZeroBlocks()
114 return cow_->AddLabel(label); in EmitLabel()
118 return cow_->Initialize(cow_device_); in Initialize()
122 return cow_->InitializeAppend(cow_device_, label); in InitializeAppend()
Dsnapshot_reader.cpp81 cow_ = std::move(cow); in SetCow()
84 if (!cow_->GetHeader(&header)) { in SetCow()
90 op_iter_ = cow_->GetOpIter(); in SetCow()
275 if (!cow_->ReadData(*op, &partial_sink)) { in ReadBlock()
314 cow_ = nullptr; in Close()
324 return cow_ != nullptr; in IsOpen()
Dsnapshot_reader_test.cpp39 cow_ = std::make_unique<TemporaryFile>(); in SetUp()
40 ASSERT_GE(cow_->fd, 0) << strerror(errno); in SetUp()
47 cow_ = nullptr; in TearDown()
145 std::unique_ptr<TemporaryFile> cow_; member in android::snapshot::OfflineSnapshotTest
155 unique_fd cow_fd(dup(cow_->fd)); in TEST_F()
Dsnapshot_reader.h72 std::unique_ptr<CowReader> cow_; variable
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_writer.h83 std::unique_ptr<CowWriter> cow_; variable