Lines Matching refs:loop

38                 _cleanup_(loop_device_unrefp) LoopDevice *loop = NULL;  in thread_func()
51 r = loop_device_make(fd, O_RDONLY, 0, UINT64_MAX, LO_FLAGS_PARTSCAN, &loop); in thread_func()
56 log_notice("Acquired loop device %s, will mount on %s", loop->node, mounted); in thread_func()
59 assert_se(loop_device_flock(loop, LOCK_SH) >= 0); in thread_func()
61 …r = dissect_image(loop->fd, NULL, NULL, loop->diskseq, loop->uevent_seqnum_not_before, loop->times… in thread_func()
63 log_error_errno(r, "Failed dissect loopback device %s: %m", loop->node); in thread_func()
66 log_info("Dissected loop device %s", loop->node); in thread_func()
88 log_notice_errno(r, "Mounted %s → %s: %m", loop->node, mounted); in thread_func()
93 assert_se(loop_device_flock(loop, LOCK_UN) >= 0); in thread_func()
102 log_notice("Detaching loop device %s", loop->node); in thread_func()
103 loop = loop_device_unref(loop); in thread_func()
124 _cleanup_(loop_device_unrefp) LoopDevice *loop = NULL; in run()
217 assert_se(loop_device_make(fd, O_RDWR, 0, UINT64_MAX, LO_FLAGS_PARTSCAN, &loop) >= 0); in run()
228 assert_se(loop_device_flock(loop, LOCK_EX) >= 0); in run()
230 …assert_se(dissect_image(loop->fd, NULL, NULL, loop->diskseq, loop->uevent_seqnum_not_before, loop-… in run()
254 …assert_se(dissect_image(loop->fd, NULL, NULL, loop->diskseq, loop->uevent_seqnum_not_before, loop-… in run()
263 assert_se(loop_device_flock(loop, LOCK_SH) >= 0); in run()
271 assert_se(loop_device_flock(loop, LOCK_UN) >= 0); in run()
274 loop = loop_device_unref(loop); in run()