Searched refs:file_fd (Results 1 – 9 of 9) sorted by relevance
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 265 static FiemapStatus FallocateFallback(int file_fd, uint64_t block_size, uint64_t file_size, in FallocateFallback() argument 280 auto rv = TEMP_FAILURE_RETRY(lseek(file_fd, cursor - 1, SEEK_SET)); in FallocateFallback() 290 if (!android::base::WriteFully(file_fd, buffer, 1)) { in FallocateFallback() 318 static bool IsFilePinned(int file_fd, const std::string& file_path, uint32_t fs_type) { in IsFilePinned() argument 327 int error = ioctl(file_fd, FS_IOC_GETFLAGS, &flags); in IsFilePinned() 342 error = ioctl(file_fd, F2FS_IOC_GET_PIN_FILE, &moved_blocks_nr); in IsFilePinned() 358 static bool PinFile(int file_fd, const std::string& file_path, uint32_t fs_type) { in PinFile() argument 359 if (IsFilePinned(file_fd, file_path, fs_type)) { in PinFile() 369 int error = ioctl(file_fd, F2FS_IOC_SET_PIN_FILE, &pin_status); in PinFile() 385 static FiemapStatus WriteZeroes(int file_fd, const std::string& file_path, size_t blocksz, in WriteZeroes() argument [all …]
|
D | utility.h | 42 bool F2fsPinBeforeAllocate(int file_fd, bool* supported);
|
D | utility.cpp | 99 bool F2fsPinBeforeAllocate(int file_fd, bool* supported) { in F2fsPinBeforeAllocate() argument 101 if (fstat(file_fd, &st) < 0) { in F2fsPinBeforeAllocate()
|
D | image_manager.cpp | 322 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CreateLoopDevice() local 323 if (file_fd < 0) { in CreateLoopDevice() 327 if (!control.Attach(file_fd, timeout_ms, path)) { in CreateLoopDevice()
|
/system/core/fs_mgr/libdm/ |
D | loop_control.cpp | 42 bool LoopControl::Attach(int file_fd, const std::chrono::milliseconds& timeout_ms, in Attach() argument 65 if (int rc = ioctl(loop_fd, LOOP_SET_FD, file_fd); rc == 0) { in Attach()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | loop_control.h | 40 bool Attach(int file_fd, const std::chrono::milliseconds& timeout_ms,
|
/system/core/libsparse/ |
D | output_file.cpp | 662 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk() local 663 if (file_fd < 0) { in write_file_chunk() 667 ret = write_fd_chunk(out, len, file_fd, offset); in write_file_chunk() 669 close(file_fd); in write_file_chunk()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz_utils.cpp | 395 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CheckCreateLoopDevice() local 396 PCHECK(file_fd >= 0) << "Could not open file: " << file; in CheckCreateLoopDevice() 397 CHECK(control->Attach(file_fd, timeout_ms, path)) in CheckCreateLoopDevice()
|
/system/core/adb/client/ |
D | incremental_server.cpp | 708 auto [file_fd, file_size] = open_fd(filepath); in serve() 711 files.emplace_back(filepath, i, file_size, std::move(file_fd), sign_offset, in serve()
|