Searched refs:base_fd_ (Results 1 – 2 of 2) sorted by relevance
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_test.cpp | 89 unique_fd base_fd_; member in android::snapshot::SnapuserdTestBase 112 base_fd_.reset(open(base_dev_->GetPath().c_str(), O_RDWR | O_CLOEXEC)); in CreateBaseDevice() 113 ASSERT_GE(base_fd_, 0); in CreateBaseDevice() 122 ASSERT_EQ(android::base::WriteFully(base_fd_, random_buffer.get(), 1_MiB), true); in CreateBaseDevice() 125 ASSERT_EQ(lseek(base_fd_, 0, SEEK_SET), 0); in CreateBaseDevice() 231 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, orig_buffer_.get(), size_, size_), true); in CreateCowDevice() 235 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, &orig_buffer_.get()[size_ * 4], size_, in CreateCowDevice() 441 ASSERT_EQ(android::base::WriteFullyAtOffset(base_fd_, (void*)corrupt_buffer.c_str(), in ReadSnapshotAndValidateOverlappingBlocks() 445 ASSERT_EQ(android::base::WriteFullyAtOffset(base_fd_, (void*)corrupt_buffer.c_str(), in ReadSnapshotAndValidateOverlappingBlocks() 448 fsync(base_fd_.get()); in ReadSnapshotAndValidateOverlappingBlocks() [all …]
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 251 int base_fd() const { return base_fd_; } in base_fd() 261 unique_fd base_fd_; member in SnapshotTestHarness 277 base_fd_ = CreateTempFile("base_device", kBaseDeviceSize); in SetupImpl() 278 ASSERT_GE(base_fd_, 0); in SetupImpl() 282 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in SetupImpl()
|