Home
last modified time | relevance | path

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

/system/update_engine/payload_consumer/
Dpartition_writer.cc265 source_fd_ = OpenFile(source_path_.c_str(), O_RDONLY, false, &err); in OpenSourcePartition()
266 if (source_fd_ == nullptr) { in OpenSourcePartition()
370 TEST_AND_RETURN_FALSE(source_fd_ != nullptr); in PerformSourceCopyOperation()
398 source_fd_, operation.src_extents(), block_size_, &source_hash) && in PerformSourceCopyOperation()
399 fd_utils::CopyAndHashExtents(source_fd_, in PerformSourceCopyOperation()
406 read_ok = fd_utils::CopyAndHashExtents(source_fd_, in PerformSourceCopyOperation()
421 return ValidateSourceHash(source_hash, operation, source_fd_, error); in PerformSourceCopyOperation()
469 TEST_AND_RETURN_FALSE(fd_utils::CopyAndHashExtents(source_fd_, in PerformSourceCopyOperation()
540 if (source_fd_ == nullptr) { in ChooseSourceFD()
555 return source_fd_; in ChooseSourceFD()
[all …]
Dpartition_writer_unittest.cc182 writer_.source_fd_ = std::make_shared<EintrSafeFileDescriptor>(); in TEST_F()
183 writer_.source_fd_->Open(source.path().c_str(), O_RDONLY); in TEST_F()
Dpartition_writer.h113 FileDescriptorPtr source_fd_; variable
Dvabc_partition_writer.cc93 WriteAllCowOps(block_size_, converted, cow_writer_.get(), source_fd_); in Init()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_writer.cpp43 if (source_fd_ < 0) { in GetSourceFd()
44 source_fd_.reset(open(source_device_->c_str(), O_RDONLY | O_CLOEXEC)); in GetSourceFd()
45 if (source_fd_ < 0) { in GetSourceFd()
50 return source_fd_; in GetSourceFd()
Dsnapshot_reader.cpp116 if (source_fd_ < 0) { in GetSourceFd()
122 source_fd_.reset(open(source_device_->c_str(), O_RDONLY | O_CLOEXEC)); in GetSourceFd()
123 if (source_fd_ < 0) { in GetSourceFd()
128 return source_fd_; in GetSourceFd()
315 source_fd_ = {}; in Close()
Dsnapshot_reader.h77 android::base::unique_fd source_fd_; variable
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_writer.h57 android::base::unique_fd source_fd_;