Home
last modified time | relevance | path

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

/aosp14/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer.cpp394 off64_t offset = lseek64(file_fd, 0, SEEK_SET); in WriteZeroes()
421 if (lseek64(file_fd, 0, SEEK_SET) < 0) { in WriteZeroes()
461 if (fallocate(file_fd, 0, 0, file_size)) { in AllocateFile()
474 if (fsync(file_fd)) { in AllocateFile()
580 if (ioctl(file_fd, FS_IOC_FIEMAP, fiemap)) { in ReadFiemap()
590 if (fstat(file_fd, &s)) { in ReadFibmap()
596 if (ioctl(file_fd, FIGETBSZ, &blksize) < 0) { in ReadFibmap()
613 if (ioctl(file_fd, FIBMAP, &block)) { in ReadFibmap()
661 ::android::base::unique_fd file_fd( in Open()
663 if (file_fd < 0) { in Open()
[all …]
H A Dutility.cpp99 bool F2fsPinBeforeAllocate(int file_fd, bool* supported) { in F2fsPinBeforeAllocate() argument
101 if (fstat(file_fd, &st) < 0) { in F2fsPinBeforeAllocate()
H A Dutility.h42 bool F2fsPinBeforeAllocate(int file_fd, bool* supported);
H A Dimage_manager.cpp336 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CreateLoopDevice() local
337 if (file_fd < 0) { in CreateLoopDevice()
341 if (!control.Attach(file_fd, timeout_ms, path)) { in CreateLoopDevice()
/aosp14/system/core/trusty/apploader/
H A Dapploader.cpp97 unique_fd file_fd(TEMP_FAILURE_RETRY(open(file_name, O_RDONLY))); in read_file() local
98 if (!file_fd.ok()) { in read_file()
103 rc = fstat64(file_fd, &st); in read_file()
137 pread(file_fd, (char*)shm + file_offset, file_size - file_offset, file_offset)); in read_file()
/aosp14/system/core/fs_mgr/libdm/
H A Dloop_control.cpp42 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()
/aosp14/system/core/fs_mgr/libdm/include/libdm/
H A Dloop_control.h40 bool Attach(int file_fd, const std::chrono::milliseconds& timeout_ms,
/aosp14/system/core/libsparse/
H A Doutput_file.cpp777 int file_fd = open(file, O_RDONLY | O_BINARY); in write_file_chunk() local
778 if (file_fd < 0) { in write_file_chunk()
782 ret = write_fd_chunk(out, len, file_fd, offset); in write_file_chunk()
784 close(file_fd); in write_file_chunk()