Searched defs:loop (Results 1 - 5 of 5) sorted by relevance
/systemd/src/shared/ |
H A D | machine-pool.c | 22 #include <linux/loop.h> 192 _cleanup_close_ int fd = -1, control = -1, loop = -1; local 252 control = open("/dev/loop-control", O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK); 254 return sd_bus_error_set_errnof(error, errno, "Failed to open /dev/loop-control: %m"); 258 return sd_bus_error_set_errnof(error, errno, "Failed to allocate loop device: %m"); 260 if (asprintf(&loopdev, "/dev/loop%i", nr) < 0) { 265 loop = open(loopdev, O_CLOEXEC|O_RDWR|O_NOCTTY|O_NONBLOCK); 266 if (loop < 0) { 271 if (ioctl(loop, LOOP_SET_FD, fd) < 0) { 276 if (ioctl(loop, LOOP_SET_STATUS6 [all...] |
/systemd/src/core/ |
H A D | umount.c | 23 #include <linux/loop.h> 220 r = udev_enumerate_add_match_sysname(e, "loop*"); 224 r = udev_enumerate_add_match_sysattr(e, "loop/backing_file", NULL); 236 char *loop; local 247 loop = strdup(dn); 248 if (!loop) 253 free(loop); 257 lb->path = loop;
|
/systemd/src/basic/ |
H A D | btrfs-util.c | 23 #include <linux/loop.h> 909 _cleanup_free_ char *p = NULL, *loop = NULL, *backing = NULL; local 929 if (asprintf(&p, "/sys/dev/block/%u:%u/loop/backing_file", major(dev), minor(dev)) < 0) 954 if (asprintf(&loop, "/dev/block/%u:%u", major(dev), minor(dev)) < 0) 956 loop_fd = open(loop, O_RDWR|O_CLOEXEC|O_NOCTTY);
|
/systemd/src/udev/ |
H A D | udevd.c | 650 struct udev_list_node *loop; local 654 udev_list_node_foreach(loop, &manager->events) { 655 struct event *loop_event = node_to_event(loop); 785 struct udev_list_node *loop; local 813 udev_list_node_foreach(loop, &manager->events) { 814 struct event *event = node_to_event(loop); 828 struct udev_list_node *loop, *tmp; local 830 udev_list_node_foreach_safe(loop, tmp, &manager->events) { 831 struct event *event = node_to_event(loop); 1560 return log_error_errno(r, "could not allocate event loop [all...] |
/systemd/src/nspawn/ |
H A D | nspawn.c | 25 #include <linux/loop.h> 1684 _cleanup_close_ int fd = -1, control = -1, loop = -1; local 1722 control = open("/dev/loop-control", O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK); 1724 return log_error_errno(errno, "Failed to open /dev/loop-control: %m"); 1728 return log_error_errno(errno, "Failed to allocate loop device: %m"); 1730 if (asprintf(&loopdev, "/dev/loop%i", nr) < 0) 1733 loop = open(loopdev, O_CLOEXEC|(arg_read_only ? O_RDONLY : O_RDWR)|O_NONBLOCK|O_NOCTTY); 1734 if (loop < 0) 1735 return log_error_errno(errno, "Failed to open loop device %s: %m", loopdev); 1737 if (ioctl(loop, LOOP_SET_F [all...] |
Completed in 29 milliseconds