Home
last modified time | relevance | path

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

/system/update_engine/common/
Dtest_utils.cc166 int loop_device_fd = in BindToUnusedLoopDevice() local
168 if (loop_device_fd == -1 && errno == ENOENT) { in BindToUnusedLoopDevice()
173 loop_device_fd = in BindToUnusedLoopDevice()
176 TEST_AND_RETURN_FALSE_ERRNO(loop_device_fd != -1); in BindToUnusedLoopDevice()
177 ScopedFdCloser loop_device_fd_closer(&loop_device_fd); in BindToUnusedLoopDevice()
180 if (ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info) != -1 || in BindToUnusedLoopDevice()
192 TEST_AND_RETURN_FALSE_ERRNO(ioctl(loop_device_fd, LOOP_SET_FD, data_fd) == 0); in BindToUnusedLoopDevice()
204 ioctl(loop_device_fd, LOOP_SET_STATUS64, &device_info) == 0); in BindToUnusedLoopDevice()
209 int loop_device_fd = in UnbindLoopDevice() local
211 if (loop_device_fd == -1 && errno == ENOENT) in UnbindLoopDevice()
[all …]