Searched refs:loop_device_fd (Results 1 – 1 of 1) sorted by relevance
110 bool SetLoopDeviceStatus(int loop_device_fd, in SetLoopDeviceStatus() argument124 ioctl(loop_device_fd, LOOP_SET_STATUS64, &device_info) == 0); in SetLoopDeviceStatus()128 if (ioctl(loop_device_fd, BLKROSET, &ro) != 0) { in SetLoopDeviceStatus()149 int loop_device_fd = in BindToUnusedLoopDeviceLegacy() local151 if (loop_device_fd == -1 && errno == ENOENT) { in BindToUnusedLoopDeviceLegacy()156 loop_device_fd = in BindToUnusedLoopDeviceLegacy()159 TEST_AND_RETURN_FALSE_ERRNO(loop_device_fd != -1); in BindToUnusedLoopDeviceLegacy()160 ScopedFdCloser loop_device_fd_closer(&loop_device_fd); in BindToUnusedLoopDeviceLegacy()163 if (ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info) != -1 || in BindToUnusedLoopDeviceLegacy()171 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDeviceLegacy()[all …]