Home
last modified time | relevance | path

Searched refs:loop (Results 1 – 25 of 36) sorted by relevance

12

/systemd-251/src/test/
Dtest-loop-block.c38 _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()
[all …]
/systemd-251/test/units/
Dtestsuite-67.sh22 losetup -d "${loop}"
33 ${DM_NAME} ${loop} - integrity-algorithm=$1
44 loop="$(losetup --show -f "${image_dir}/image")"
46 if [[ ! -e ${loop} ]]; then
53 integritysetup format "${loop}" --batch-mode -I "${algorithm}" || exit 1
54 integritysetup open -I "${algorithm}" "${loop}" "${DM_NAME}" || exit 1
Dtestsuite-50.sh189 loop="$(losetup --show -P -f "${image}.gpt")"
190 dd if="${image}.raw" of="${loop}p1"
191 dd if="${image}.verity" of="${loop}p2"
193 dd if="${image}.verity-sig" of="${loop}p3"
195 losetup -d "${loop}"
/systemd-251/units/
Dsystemd-nspawn@.service.in13 Wants=modprobe@tun.service modprobe@loop.service modprobe@dm-mod.service
16 After=network.target modprobe@tun.service modprobe@loop.service modprobe@dm-mod.service
20 # Make sure the DeviceAllow= lines below can properly resolve the 'block-loop' expression (and othe…
38 # nspawn itself needs access to /dev/loop-control and /dev/loop, to implement
40 DeviceAllow=/dev/loop-control rw
41 DeviceAllow=block-loop rw
Dvar-lib-machines.mount23 Options=loop
Dsystemd-homed.service.in19 DeviceAllow=/dev/loop-control rw
/systemd-251/src/shared/
Dloop-util.c353 static int attach_empty_file(int loop, int nr) { in attach_empty_file() argument
370 if (flock(loop, LOCK_EX) < 0) in attach_empty_file()
373 if (ioctl(loop, LOOP_SET_FD, fd) < 0) in attach_empty_file()
376 if (ioctl(loop, LOOP_SET_STATUS64, &(struct loop_info64) { in attach_empty_file()
383 if (ioctl(loop, LOOP_CLR_FD) < 0) in attach_empty_file()
516 _cleanup_close_ int loop = -1; in loop_device_make_internal() local
536 loop = open(loopdev, O_CLOEXEC|O_NONBLOCK|O_NOCTTY|open_flags); in loop_device_make_internal()
537 if (loop < 0) { in loop_device_make_internal()
543 … r = loop_configure(loop, nr, &config, &try_loop_configure, &seqnum, &timestamp); in loop_device_make_internal()
545 loop_with_fd = TAKE_FD(loop); in loop_device_make_internal()
[all …]
Dmeson.build207 'loop-util.c',
208 'loop-util.h',
/systemd-251/src/home/
Dhomework-luks.c1285 if (!setup->loop) { in home_setup_luks()
1286 r = loop_device_open(n, O_RDWR, &setup->loop); in home_setup_luks()
1291 if (ioctl(setup->loop->fd, LOOP_GET_STATUS64, &info) < 0) { in home_setup_luks()
1297 if (ioctl(setup->loop->fd, BLKGETSIZE64, &size) < 0) in home_setup_luks()
1300 if (fstat(setup->loop->fd, &st) < 0) in home_setup_luks()
1342 log_info("Discovered used loopback device %s.", setup->loop->node); in home_setup_luks()
1357 assert(!setup->loop); in home_setup_luks()
1380 r = loop_device_make(setup->image_fd, O_RDWR, offset, size, 0, &setup->loop); in home_setup_luks()
1388 log_info("Setting up loopback device %s completed.", setup->loop->node ?: ip); in home_setup_luks()
1391 setup->loop->node ?: ip, in home_setup_luks()
[all …]
Dhomework.h20 LoopDevice *loop; member
Dhomework.c429 setup->loop = loop_device_unref(setup->loop); in home_setup_done()
453 assert(!setup->loop); in home_setup()
/systemd-251/rules.d/
D99-systemd.rules.in33 # Ignore loop devices that don't have any file attached
34 SUBSYSTEM=="block", KERNEL=="loop[0-9]*", ENV{DEVTYPE}=="disk", TEST!="loop/backing_file", ENV{SYST…
D50-udev-default.rules.in84 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
D60-block.rules12 …KERNEL=="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|…
/systemd-251/test/fuzz/fuzz-udev-rules/
D99-systemd.rules33 # Ignore loop devices that don't have any file attached
34 SUBSYSTEM=="block", KERNEL=="loop[0-9]*", ENV{DEVTYPE}=="disk", TEST!="loop/backing_file", ENV{SYST…
D50-udev-default.rules69 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
D60-block.rules11 ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="w…
/systemd-251/test/TEST-46-HOMED/
Dtest.sh17 instmods loop =block
/systemd-251/test/TEST-67-INTEGRITY/
Dtest.sh15 instmods loop =block
/systemd-251/test/TEST-29-PORTABLE/
Dtest.sh18 instmods loop =block
/systemd-251/test/TEST-50-DISSECT/
Dtest.sh24 instmods loop =block
/systemd-251/test/fuzz/fuzz-unit-file/
Dvar-lib-machines.mount19 Options=loop
/systemd-251/tmpfiles.d/
Dstatic-nodes-permissions.conf.in14 z /dev/loop-control 0660 - disk -
/systemd-251/src/nspawn/
Dnspawn.c5451 _cleanup_(loop_device_unrefp) LoopDevice *loop = NULL; in run()
5754 &loop); in run()
5761 r = loop_device_flock(loop, LOCK_SH); in run()
5768 loop->fd, in run()
5772 loop->diskseq, in run()
5773 loop->uevent_seqnum_not_before, in run()
5774 loop->timestamp_not_before, in run()
5792 loop->fd, in run()
/systemd-251/docs/
DCODING_STYLE.md281 - To implement an endless loop, use `for (;;)` rather than `while (1)`. The
284 infinite while loop is, our recommendation is to simply write it without any
468 `alloca_safe()` within a loop or within function call
470 not at the end of a `{}` block. Thus, if you invoke it in a loop, you keep

12