Lines Matching refs:device_fd
70 if (device_fd.get() != -1) { in MaybeCloseBad()
72 if (ioctl(device_fd.get(), LOOP_CLR_FD) == -1) { in MaybeCloseBad()
324 Result<void> ConfigureLoopDevice(const int device_fd, const std::string& target, in ConfigureLoopDevice() argument
338 if (ioctl(device_fd, LOOP_CONFIGURE, &config) == -1 && errno == EBADF) { in ConfigureLoopDevice()
391 if (ioctl(device_fd, LOOP_CONFIGURE, &config) == -1) { in ConfigureLoopDevice()
397 if (ioctl(device_fd, LOOP_SET_FD, target_fd.get()) == -1) { in ConfigureLoopDevice()
401 if (ioctl(device_fd, LOOP_SET_STATUS64, &li) == -1) { in ConfigureLoopDevice()
405 if (ioctl(device_fd, BLKFLSBUF, 0) == -1) { in ConfigureLoopDevice()
429 if (ioctl(device_fd, LOOP_SET_BLOCK_SIZE, 4096) == -1) { in ConfigureLoopDevice()
497 CHECK_NE(loop_device->device_fd.get(), -1); in CreateLoopDevice()
500 loop_device->device_fd.get(), target, image_offset, image_size); in CreateLoopDevice()