/systemd/tmpfiles.d/ |
H A D | systemd-nspawn.conf | 10 Q /var/lib/machines 0700 - - - 17 # in /var/lib/machines/ at boot, which should be safe since the 22 R! /var/lib/machines/.#*
|
/systemd/src/machine/ |
H A D | machined.c | 47 m->machines = hashmap_new(&string_hash_ops); 51 if (!m->machines || !m->machine_units || !m->machine_leaders) { 73 while ((machine = hashmap_first(m->machines))) 76 hashmap_free(m->machines); 146 d = opendir("/run/systemd/machines"); 151 return log_error_errno(errno, "Failed to open /run/systemd/machines: %m"); 330 HASHMAP_FOREACH(machine, m->machines, i) 341 return hashmap_isempty(m->machines); 374 * existence of /run/systemd/machines/ to determine whether 377 mkdir_label("/run/systemd/machines", 075 [all...] |
H A D | machined.h | 40 Hashmap *machines; member in struct:Manager
|
H A D | machined-dbus.c | 59 return sd_bus_message_append(reply, "s", "/var/lib/machines"); 78 /* We try to read the quota info from /var/lib/machines, as 80 * /var/lib/machines.raw, and pick the larger value. */ 82 fd = open("/var/lib/machines", O_RDONLY|O_CLOEXEC|O_DIRECTORY); 90 if (stat("/var/lib/machines.raw", &st) >= 0) { 114 /* We try to read the quota limit from /var/lib/machines, as 116 * /var/lib/machines.raw, and pick the smaller value. */ 118 fd = open("/var/lib/machines", O_RDONLY|O_CLOEXEC|O_DIRECTORY); 126 if (stat("/var/lib/machines.raw", &st) >= 0) { 148 machine = hashmap_get(m->machines, nam [all...] |
H A D | machinectl.c | 130 _cleanup_free_ MachineInfo *machines = NULL; local 150 log_error("Could not get machines: %s", bus_error_message(&error, -r)); 164 if (!GREEDY_REALLOC(machines, n_allocated, n_machines + 1)) 167 machines[n_machines].name = name; 168 machines[n_machines].class = class; 169 machines[n_machines].service = service; 192 qsort_safe(machines, n_machines, sizeof(MachineInfo), compare_machine_info); 202 (int) max_name, machines[j].name, 203 (int) max_class, machines[j].class, 204 (int) max_service, machines[ [all...] |
H A D | machine.c | 66 m->state_file = strappend("/run/systemd/machines/", m->name); 73 if (hashmap_put(manager->machines, m->name, m) < 0) 101 (void) hashmap_remove(m->manager->machines, m->name); 132 r = mkdir_safe_label("/run/systemd/machines", 0755, 0, 0); 230 sl = strjoina("/run/systemd/machines/unit:", m->unit); 252 sl = strjoina("/run/systemd/machines/unit:", m->unit);
|
H A D | machine-dbus.c | 128 "org.freedesktop.machine1.manage-machines", 174 "org.freedesktop.machine1.manage-machines", 365 return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Requesting IP address data is only supported on container machines."); 457 return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Requesting OS release data is only supported on container machines."); 881 return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Bind mounting is only supported on container machines."); 898 "org.freedesktop.machine1.manage-machines", 1144 return sd_bus_error_setf(error, SD_BUS_ERROR_NOT_SUPPORTED, "Copying files is only supported on container machines."); 1161 "org.freedesktop.machine1.manage-machines", 1344 machine = hashmap_get(m->machines, e); 1376 HASHMAP_FOREACH(machine, m->machines, [all...] |
/systemd/src/libsystemd/sd-login/ |
H A D | test-login.c | 42 char **seats, **sessions, **machines; local 220 r = sd_get_machine_names(&machines); 222 assert_se(r == (int) strv_length(machines)); 223 assert_se(t = strv_join(machines, ", ")); 224 strv_free(machines); 226 printf("machines = %s\n", t);
|
H A D | sd-login.c | 852 _public_ int sd_get_machine_names(char ***machines) { argument 856 assert_return(machines, -EINVAL); 858 r = get_files_in_directory("/run/systemd/machines/", &l); 879 *machines = l; 891 p = strjoina("/run/systemd/machines/", machine); 916 p = strjoina("/run/systemd/machines/", machine); 997 k = inotify_add_watch(fd, "/run/systemd/machines/", IN_MOVED_TO|IN_DELETE);
|
/systemd/src/systemd/ |
H A D | sd-login.h | 215 /* Get all running virtual machines/containers */ 216 int sd_get_machine_names(char ***machines);
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 630 _cleanup_strv_free_ char **machines = NULL; local 633 r = sd_get_machine_names(&machines); 637 STRV_FOREACH(i, machines) { 660 *_machines = machines; 661 machines = NULL; 677 _cleanup_strv_free_ char **machines = NULL; local 687 r = get_unit_list_recursive(bus, strv_skip(argv, 1), &unit_infos, &replies, &machines); 883 _cleanup_strv_free_ char **machines = NULL; local 899 n = get_unit_list_recursive(bus, strv_skip(argv, 1), &unit_infos, &replies, &machines); 1189 _cleanup_strv_free_ char **machines local [all...] |