Home
last modified time | relevance | path

Searched refs:what (Results 1 – 25 of 80) sorted by relevance

1234

/systemd-251/src/fstab-generator/
Dfstab-generator.c83 static int write_what(FILE *f, const char *what) { in write_what() argument
86 w = specifier_escape(what); in write_what()
95 const char *what, in add_swap() argument
103 assert(what); in add_swap()
107 …o("Swap unit generation disabled on kernel command line, ignoring fstab swap entry for %s.", what); in add_swap()
112 log_info("Swap not supported, ignoring fstab swap entry for %s.", what); in add_swap()
117 log_info("Running in a container, ignoring fstab swap entry for %s.", what); in add_swap()
121 r = unit_name_from_path(what, ".swap", &name); in add_swap()
135 r = generator_write_blockdev_dependency(f, what); in add_swap()
143 r = write_what(f, what); in add_swap()
[all …]
/systemd-251/src/shared/
Dgenerator.c77 const char *what, in write_fsck_sysroot_service() argument
90 escaped = specifier_escape(what); in write_fsck_sysroot_service()
101 r = unit_name_from_path(what, ".device", &device); in write_fsck_sysroot_service()
103 return log_error_errno(r, "Failed to convert device \"%s\" to unit name: %m", what); in write_fsck_sysroot_service()
143 const char *what, in generator_write_fsck_deps() argument
151 assert(what); in generator_write_fsck_deps()
161 if (!is_device_path(what)) { in generator_write_fsck_deps()
162 log_warning("Checking was requested for \"%s\", but it is not a device.", what); in generator_write_fsck_deps()
169 …g was requested for %s, but couldn't detect if fsck.%s may be used, proceeding: %m", what, fstype); in generator_write_fsck_deps()
172 … log_debug("Checking was requested for %s, but fsck.%s does not exist.", what, fstype); in generator_write_fsck_deps()
[all …]
Dgenerator.h19 const char *what,
25 const char *what,
32 const char *what);
41 const char *what,
59 const char *what,
65 const char *what);
69 const char *what);
72 const char *what,
Dmount-util.h58 const char *what,
67 const char *what, in mount_follow_verbose() argument
72 return mount_verbose_full(error_log_level, what, where, type, flags, options, true); in mount_follow_verbose()
77 const char *what, in mount_nofollow_verbose() argument
82 return mount_verbose_full(error_log_level, what, where, type, flags, options, false); in mount_nofollow_verbose()
Dmount-util.c646 const char *what, in mount_verbose_full() argument
665 if ((f & MS_REMOUNT) && !what && !type) in mount_verbose_full()
668 else if (!what && !type) in mount_verbose_full()
673 what, where, strnull(fl), strempty(o)); in mount_verbose_full()
676 what, where, strnull(fl), strempty(o)); in mount_verbose_full()
679 strna(what), strna(type), where, strnull(fl), strempty(o)); in mount_verbose_full()
682 r = RET_NERRNO(mount(what, where, type, f, o)); in mount_verbose_full()
684 r = mount_nofollow(what, where, type, f, o); in mount_verbose_full()
688 strna(what), strna(type), where, strnull(fl), strempty(o)); in mount_verbose_full()
694 const char *what, in umount_verbose() argument
[all …]
Duserdb.c32 LookupWhat what; member
62 switch (iterator->what) { in userdb_iterator_free()
104 static UserDBIterator* userdb_iterator_new(LookupWhat what, UserDBFlags flags) { in userdb_iterator_new() argument
107 assert(what >= 0); in userdb_iterator_new()
108 assert(what < _LOOKUP_WHAT_MAX); in userdb_iterator_new()
115 .what = what, in userdb_iterator_new()
180 switch (iterator->what) { in userdb_on_query_reply()
532 if (iterator->what == LOOKUP_USER && iterator->found_user) { in userdb_process()
548 if (iterator->what == LOOKUP_GROUP && iterator->found_group) { in userdb_process()
564 …if (iterator->what == LOOKUP_MEMBERSHIP && iterator->found_user_name && iterator->found_group_name… in userdb_process()
[all …]
Dmount-setup.c45 const char *what; member
183 p->what, in mount_one()
189 r = RET_NERRNO(mount(p->what, p->where, p->type, p->flags, p->options)); in mount_one()
191 r = mount_nofollow(p->what, p->where, p->type, p->flags, p->options); in mount_one()
305 .what = "cgroup", in mount_cgroup_controllers()
/systemd-251/src/login/
Dlogind-inhibit.c45 .what = _INHIBIT_WHAT_INVALID, in inhibitor_new()
109 inhibit_what_to_string(i->what), in inhibitor_save()
213 …_cleanup_free_ char *what = NULL, *uid = NULL, *pid = NULL, *who = NULL, *why = NULL, *mode = NULL; in inhibitor_load() local
221 "WHAT", &what, in inhibitor_load()
231 w = what ? inhibit_what_from_string(what) : 0; in inhibitor_load()
233 i->what = w; in inhibitor_load()
366 InhibitWhat what = 0; in manager_inhibit_what() local
372 what |= i->what; in manager_inhibit_what()
374 return what; in manager_inhibit_what()
416 if (!(i->what & w)) in manager_is_inhibited()
[all …]
Dtest-inhibit.c13 static int inhibit(sd_bus *bus, const char *what) { in inhibit() argument
27 "ssss", what, who, reason, mode); in inhibit()
40 const char *what, *who, *why, *mode; in print_inhibitors() local
58 … while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { in print_inhibitors()
60 what, who, why, mode, uid, pid); in print_inhibitors()
Dinhibit.c97 const char *what, *who, *why, *mode; in print_inhibitors() local
100 r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid); in print_inhibitors()
118 TABLE_STRING, what, in print_inhibitors()
/systemd-251/src/gpt-auto-generator/
Dgpt-auto-generator.c109 static int add_cryptsetup(const char *id, const char *what, bool rw, bool require, char **device) { in add_cryptsetup() argument
116 assert(what); in add_cryptsetup()
118 r = unit_name_from_path(what, ".device", &d); in add_cryptsetup()
145 r = generator_write_cryptsetup_service_section(f, id, what, NULL, rw ? NULL : "read-only"); in add_cryptsetup()
195 const char *what, in add_mount() argument
213 assert(what); in add_mount()
217 log_debug("Adding %s: %s fstype=%s", where, what, fstype ?: "(any)"); in add_mount()
220 r = add_cryptsetup(id, what, rw, true, &crypto_what); in add_mount()
224 what = crypto_what; in add_mount()
250 r = generator_write_fsck_deps(f, arg_dest, what, where, fstype); in add_mount()
[all …]
/systemd-251/src/core/
Dswap.c93 s->parameters_proc_swaps.what = mfree(s->parameters_proc_swaps.what); in swap_unset_proc_swaps()
169 s->what = mfree(s->what); in swap_done()
170 s->parameters_fragment.what = mfree(s->parameters_fragment.what); in swap_done()
233 if (!s->what) in swap_add_device_dependencies()
237 if (!p || !p->what) in swap_add_device_dependencies()
242 if (is_device_path(p->what)) { in swap_add_device_dependencies()
243 r = unit_add_node_dependency(UNIT(s), p->what, UNIT_REQUIRES, mask); in swap_add_device_dependencies()
247 return unit_add_blockdev_dependency(UNIT(s), p->what, mask); in swap_add_device_dependencies()
284 r = unit_name_from_path(s->what, ".swap", &e); in swap_verify()
305 if (stat(s->what, &st) < 0 || !S_ISBLK(st.st_mode)) in swap_load_devnode()
[all …]
Dmount.c238 p->what = mfree(p->what); in mount_parameters_done()
266 const char *what, in update_parameters_proc_self_mountinfo() argument
275 r = free_and_strdup(&p->what, what); in update_parameters_proc_self_mountinfo()
315 if (pm && pm->what && in mount_add_mount_dependencies()
316 path_is_absolute(pm->what) && in mount_add_mount_dependencies()
319 r = unit_require_mounts_for(UNIT(m), pm->what, UNIT_DEPENDENCY_FILE); in mount_add_mount_dependencies()
361 if (!p->what) in mount_add_device_dependencies()
367 if (!is_device_path(p->what)) in mount_add_device_dependencies()
372 if (PATH_IN_SET(p->what, "/dev/root", "/dev/nfs")) in mount_add_device_dependencies()
388 r = unit_add_node_dependency(UNIT(m), p->what, dep, mask); in mount_add_device_dependencies()
[all …]
Ddbus-mount.c14 if (m->from_proc_self_mountinfo && m->parameters_proc_self_mountinfo.what) in mount_get_what()
15 return m->parameters_proc_self_mountinfo.what; in mount_get_what()
16 if (m->from_fragment && m->parameters_fragment.what) in mount_get_what()
17 return m->parameters_fragment.what; in mount_get_what()
83 … return bus_set_transient_string(u, name, &m->parameters_fragment.what, message, flags, error); in bus_mount_set_transient_property()
Dswap.h33 char *what; member
42 char *what; member
Dnamespace.c1297 const char *what; in apply_one_mount() local
1338 what = inaccessible; in apply_one_mount()
1357 what = mount_entry_path(m); in apply_one_mount()
1424 what = mount_entry_source(m); in apply_one_mount()
1435 what = mount_entry_source(m); in apply_one_mount()
1470 assert(what); in apply_one_mount()
1472 …r = mount_nofollow_verbose(LOG_DEBUG, what, mount_entry_path(m), NULL, MS_BIND|(rbind ? MS_REC : 0… in apply_one_mount()
1484 q = make_mount_point_inode_from_path(what, mount_entry_path(m), 0755); in apply_one_mount()
1493 …r = mount_nofollow_verbose(LOG_DEBUG, what, mount_entry_path(m), NULL, MS_BIND|(rbind ? MS_REC : 0… in apply_one_mount()
1495 … return log_error_errno(r, "Failed to mount %s to %s: %m", what, mount_entry_path(m)); in apply_one_mount()
[all …]
/systemd-251/src/test/
Dtest-dns-domain.c9 static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int… in test_dns_label_unescape_one() argument
12 const char *w = what; in test_dns_label_unescape_one()
14 log_info("%s, %s, %zu, →%d/%d", what, expect, buffer_sz, ret, ret_ldh); in test_dns_label_unescape_one()
21 w = what; in test_dns_label_unescape_one()
27 w = what; in test_dns_label_unescape_one()
29 const int ret_noe = strchr(what, '\\') ? -EINVAL : ret; in test_dns_label_unescape_one()
60 static void test_dns_name_to_wire_format_one(const char *what, const char *expect, size_t buffer_sz… in test_dns_name_to_wire_format_one() argument
64 log_info("%s, %s, %zu, →%d", what, expect, buffer_sz, ret); in test_dns_name_to_wire_format_one()
66 r = dns_name_to_wire_format(what, buffer, buffer_sz, false); in test_dns_name_to_wire_format_one()
122 static void test_dns_label_unescape_suffix_one(const char *what, const char *expect1, const char *e… in test_dns_label_unescape_suffix_one() argument
[all …]
/systemd-251/test/units/
Dtestsuite-33.sh46 systemctl clean testservice --what=configuration
62 systemctl clean testservice --what=logs
70 systemctl clean testservice --what=all
125 systemctl clean testservice --what=configuration
149 systemctl clean testservice --what=logs
161 systemctl clean testservice --what=all
216 systemctl clean tmp-hoge.mount --what=configuration
232 systemctl clean tmp-hoge.mount --what=logs
240 systemctl clean tmp-hoge.mount --what=all
286 systemctl clean testservice.socket --what=configuration
[all …]
/systemd-251/src/basic/
Dinotify-util.c7 int inotify_add_watch_fd(int fd, int what, uint32_t mask) { in inotify_add_watch_fd() argument
11 wd = inotify_add_watch(fd, FORMAT_PROC_FD_PATH(what), mask); in inotify_add_watch_fd()
/systemd-251/src/mount/
Dmount-tool.c726 static int find_mount_points(const char *what, char ***list) { in find_mount_points() argument
733 assert(what); in find_mount_points()
758 if (!path_equal(source, what)) in find_mount_points()
916 static int umount_by_device(sd_bus *bus, const char *what) { in umount_by_device() argument
924 assert(what); in umount_by_device()
926 if (stat(what, &st) < 0) in umount_by_device()
927 return log_error_errno(errno, "Can't stat %s: %m", what); in umount_by_device()
931 "Not a block device: %s", what); in umount_by_device()
943 "%s does not contain a known file system.", what); in umount_by_device()
948 r = find_mount_points(what, &list); in umount_by_device()
/systemd-251/.github/ISSUE_TEMPLATE/
DFeature_request.md8 A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11 A clear and concise description of what you want to happen.
/systemd-251/src/network/
Dnetworkd-dhcp-server.c176 sd_dhcp_lease_server_type_t what, in link_push_uplink_to_dhcp_server() argument
189 log_link_debug(link, "Copying %s from link", dhcp_lease_server_type_to_string(what)); in link_push_uplink_to_dhcp_server()
191 switch (what) { in link_push_uplink_to_dhcp_server()
263 int n = sd_dhcp_lease_get_servers(link->dhcp_lease, what, &da); in link_push_uplink_to_dhcp_server()
277 return sd_dhcp_server_set_servers(s, what, addresses, n_addresses); in link_push_uplink_to_dhcp_server()
/systemd-251/src/systemctl/
Dsystemctl-logind.c111 const char *what, *who, *why, *mode; in logind_check_inhibitors() local
147 … while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { in logind_check_inhibitors()
154 sv = strv_split(what, ":"); in logind_check_inhibitors()
/systemd-251/docs/
DPREDICTABLE_INTERFACE_NAMES.md18 …ical location on the mainboard. In a way this naming scheme is similar to what is already done nat…
40 ## Come again, what good does this do?
49 * The interface names are fully predictable, i.e. just by looking at lspci you can figure out what
57 …e. With this new scheme in place, an administrator now has to check first what the local interface…
/systemd-251/src/resolve/
Dresolved-bus.h17 void bus_client_log(sd_bus_message *m, const char *what);

1234