Searched refs:cow_fd_ (Results 1 – 8 of 8) sorted by relevance
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | worker.cpp | 45 if (!reader_->InitForMerge(std::move(cow_fd_))) { in InitReader() 52 cow_fd_.reset(open(cow_device_.c_str(), O_RDWR)); in InitializeFds() 53 if (cow_fd_ < 0) { in InitializeFds()
|
D | snapuserd_core.cpp | 111 if (lseek(cow_fd_.get(), 0, SEEK_SET) < 0) { in CommitMerge() 116 if (!android::base::WriteFully(cow_fd_, &header, header.prefix.header_size)) { in CommitMerge() 121 if (fsync(cow_fd_.get()) < 0) { in CommitMerge() 168 if (!reader_->Parse(cow_fd_)) { in ReadMetadata() 263 cow_fd_.get(), 0); in MmapMetadata() 287 cow_fd_.reset(open(cow_device_.c_str(), O_RDWR)); in InitCowDevice() 288 if (cow_fd_ < 0) { in InitCowDevice()
|
D | worker.h | 58 unique_fd cow_fd_; variable
|
D | snapuserd_core.h | 120 void CloseFds() { cow_fd_ = {}; } in CloseFds() 207 unique_fd cow_fd_; variable
|
D | snapuserd_readahead.h | 83 android::base::unique_fd cow_fd_; variable
|
D | snapuserd_readahead.cpp | 812 cow_fd_.reset(open(cow_device_.c_str(), O_RDWR)); in InitializeFds() 813 if (cow_fd_ < 0) { in InitializeFds() 824 if (!reader_->InitForMerge(std::move(cow_fd_))) { in InitReader()
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | create_cow.cpp | 86 unique_fd cow_fd_; member in android::snapshot::CreateSnapshot 135 cow_fd_.reset(open(patch_file_.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666)); in PrepareParse() 136 if (cow_fd_ < 0) { in PrepareParse() 250 writer_ = CreateCowWriter(3, options, std::move(cow_fd_)); in CreateSnapshotWriter()
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 262 unique_fd cow_fd_; member in SnapshotTestHarness 279 cow_fd_ = CreateTempFile("cow_device", kCowDeviceSize); in SetupImpl() 280 ASSERT_GE(cow_fd_, 0); in SetupImpl() 284 cow_loop_ = std::make_unique<LoopDevice>(cow_fd_, 10s); in SetupImpl()
|