Searched refs:source_fd (Results 1 – 3 of 3) sorted by relevance
/aosp14/system/core/fs_mgr/libvbmeta/ |
H A D | builder.cpp | 62 unique_fd source_fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC))); in ReadVBMetaImageFromFile() local 63 if (source_fd < 0) { in ReadVBMetaImageFromFile() 67 Result<uint64_t> file_size = GetFileSize(source_fd); in ReadVBMetaImageFromFile() 77 if (!android::base::ReadFully(source_fd, buffer.get(), file_size.value())) { in ReadVBMetaImageFromFile()
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot_writer.cpp | 200 auto source_fd = GetSourceFd(); in EmitCopy() local 201 if (source_fd < 0) { in EmitCopy() 210 if (!android::base::ReadFullyAtOffset(source_fd, buffer.data(), buffer.size(), offset)) { in EmitCopy()
|
/aosp14/system/core/fs_mgr/liblp/ |
H A D | images.cpp | 451 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile() local 452 if (source_fd < 0) { in OpenImageFile() 457 SparsePtr source(sparse_file_import(source_fd, true, true), sparse_file_destroy); in OpenImageFile() 459 int fd = source_fd.get(); in OpenImageFile() 460 temp_fds_.push_back(std::move(source_fd)); in OpenImageFile()
|