Searched refs:file_fd (Results 1 – 4 of 4) sorted by relevance
/system/core/fs_mgr/libfiemap_writer/ |
D | fiemap_writer.cpp | 235 static bool FallocateFallback(int file_fd, uint64_t block_size, uint64_t file_size, in FallocateFallback() argument 250 auto rv = TEMP_FAILURE_RETRY(lseek(file_fd, cursor - 1, SEEK_SET)); in FallocateFallback() 260 if (!android::base::WriteFully(file_fd, buffer, 1)) { in FallocateFallback() 271 static bool AllocateFile(int file_fd, const std::string& file_path, uint64_t blocksz, in AllocateFile() argument 281 if (fallocate(file_fd, FALLOC_FL_ZERO_RANGE, 0, file_size)) { in AllocateFile() 290 return FallocateFallback(file_fd, blocksz, file_size, file_path, on_progress); in AllocateFile() 305 off64_t offset = lseek64(file_fd, 0, SEEK_SET); in AllocateFile() 313 if (!::android::base::WriteFully(file_fd, buffer.get(), blocksz)) { in AllocateFile() 332 if (lseek64(file_fd, 0, SEEK_SET) < 0) { in AllocateFile() 338 if (fsync(file_fd)) { in AllocateFile() [all …]
|
/system/core/fs_mgr/libdm/ |
D | loop_control.cpp | 40 bool LoopControl::Attach(int file_fd, std::string* loopdev) const { in Attach() argument 52 int rc = ioctl(loop_fd, LOOP_SET_FD, file_fd); in Attach()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | loop_control.h | 33 bool Attach(int file_fd, std::string* loopdev) const;
|
/system/core/libsparse/ |
D | output_file.cpp | 706 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk() local 707 if (file_fd < 0) { in write_file_chunk() 711 ret = write_fd_chunk(out, len, file_fd, offset); in write_file_chunk() 713 close(file_fd); in write_file_chunk()
|