/systemd-251/src/test/ |
D | test-loop-block.c | 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() [all …]
|
/systemd-251/test/units/ |
D | testsuite-67.sh | 22 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
|
D | testsuite-50.sh | 189 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/ |
D | systemd-nspawn@.service.in | 13 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
|
D | var-lib-machines.mount | 23 Options=loop
|
D | systemd-homed.service.in | 19 DeviceAllow=/dev/loop-control rw
|
/systemd-251/src/shared/ |
D | loop-util.c | 353 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, ×tamp); in loop_device_make_internal() 545 loop_with_fd = TAKE_FD(loop); in loop_device_make_internal() [all …]
|
D | meson.build | 207 'loop-util.c', 208 'loop-util.h',
|
/systemd-251/src/home/ |
D | homework-luks.c | 1285 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 …]
|
D | homework.h | 20 LoopDevice *loop; member
|
D | homework.c | 429 setup->loop = loop_device_unref(setup->loop); in home_setup_done() 453 assert(!setup->loop); in home_setup()
|
/systemd-251/rules.d/ |
D | 99-systemd.rules.in | 33 # 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…
|
D | 50-udev-default.rules.in | 84 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
|
D | 60-block.rules | 12 …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/ |
D | 99-systemd.rules | 33 # 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…
|
D | 50-udev-default.rules | 69 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
|
D | 60-block.rules | 11 ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*|pmem*|mmcblk*", OPTIONS+="w…
|
/systemd-251/test/TEST-46-HOMED/ |
D | test.sh | 17 instmods loop =block
|
/systemd-251/test/TEST-67-INTEGRITY/ |
D | test.sh | 15 instmods loop =block
|
/systemd-251/test/TEST-29-PORTABLE/ |
D | test.sh | 18 instmods loop =block
|
/systemd-251/test/TEST-50-DISSECT/ |
D | test.sh | 24 instmods loop =block
|
/systemd-251/test/fuzz/fuzz-unit-file/ |
D | var-lib-machines.mount | 19 Options=loop
|
/systemd-251/tmpfiles.d/ |
D | static-nodes-permissions.conf.in | 14 z /dev/loop-control 0660 - disk -
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 5451 _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/ |
D | CODING_STYLE.md | 281 - 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
|