Searched refs:cow_fd (Results 1 – 6 of 6) sorted by relevance
/system/update_engine/payload_consumer/ |
D | cow_writer_file_descriptor_unittest.cc | 94 auto cow_fd = in TEST_F() local 97 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F() 100 cow_fd->Read(read_back.data(), read_back.size())); in TEST_F() 109 cow_fd = std::make_unique<CowWriterFileDescriptor>(std::move(cow_writer)); in TEST_F() 111 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F() 113 cow_fd->Read(read_back.data(), read_back.size())); in TEST_F()
|
D | filesystem_verifier_action_unittest.cc | 568 auto cow_fd = std::make_shared<EintrSafeFileDescriptor>(); in DoTestVABC() local 569 EXPECT_TRUE(cow_fd->Open(part.readonly_target_path.c_str(), O_RDWR)) in DoTestVABC() 572 return cow_fd; in DoTestVABC() 577 auto cow_fd = open_cow(); in DoTestVABC() local 621 ASSERT_TRUE(utils::PReadAll(cow_fd, in DoTestVABC() 628 ASSERT_TRUE(utils::PReadAll(cow_fd, in DoTestVABC()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_writer.cpp | 71 unique_fd cow_fd(dup(cow_device_.get())); in OpenReader() local 72 if (cow_fd < 0) { in OpenReader() 78 if (!cow->Parse(std::move(cow_fd))) { in OpenReader()
|
D | snapshot_reader_test.cpp | 155 unique_fd cow_fd(dup(cow_->fd)); in TEST_F() local 156 ASSERT_GE(cow_fd, 0); in TEST_F() 160 ASSERT_TRUE(writer->SetCowDevice(std::move(cow_fd))); in TEST_F()
|
D | power_test.cpp | 311 unique_fd cow_fd(open(cow_path_.c_str(), O_WRONLY)); in SetupImages() local 312 if (cow_fd < 0) { in SetupImages() 318 if (!android::base::WriteFully(cow_fd, chunk, sizeof(chunk))) { in SetupImages() 322 if (fsync(cow_fd)) { in SetupImages()
|
D | snapshot.cpp | 3189 unique_fd cow_fd(open(cow_path.c_str(), O_RDWR | O_CLOEXEC)); in OpenCompressedSnapshotWriter() local 3190 if (cow_fd < 0) { in OpenCompressedSnapshotWriter() 3194 if (!writer->SetCowDevice(std::move(cow_fd))) { in OpenCompressedSnapshotWriter()
|