Home
last modified time | relevance | path

Searched refs:cow_fd_ (Results 1 – 8 of 8) sorted by relevance

/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dworker.cpp45 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()
Dsnapuserd_core.cpp111 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()
Dworker.h58 unique_fd cow_fd_; variable
Dsnapuserd_core.h120 void CloseFds() { cow_fd_ = {}; } in CloseFds()
207 unique_fd cow_fd_; variable
Dsnapuserd_readahead.h83 android::base::unique_fd cow_fd_; variable
Dsnapuserd_readahead.cpp812 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/
Dcreate_cow.cpp86 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/
Ddm_test.cpp262 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()