Lines Matching refs:fd
223 static int RetryFibmap(int fd, const std::string& name, int* block, const int head_block) { in RetryFibmap() argument
226 if (fsync(fd) == -1) { in RetryFibmap()
230 if (ioctl(fd, FIBMAP, block) != 0) { in RetryFibmap()
291 android::base::unique_fd fd(open(path.c_str(), O_RDWR)); in ProductBlockMap() local
292 if (fd == -1) { in ProductBlockMap()
324 int error = ioctl(fd, F2FS_IOC_SET_PIN_FILE, &set); in ProductBlockMap()
345 if (ioctl(fd, FIBMAP, &block) != 0) { in ProductBlockMap()
352 int error = RetryFibmap(fd, path, &block, head_block); in ProductBlockMap()
373 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { in ProductBlockMap()
390 if (ioctl(fd, FIBMAP, &block) != 0) { in ProductBlockMap()
397 int error = RetryFibmap(fd, path, &block, head_block); in ProductBlockMap()