Home
last modified time | relevance | path

Searched refs:unit_name_from_path (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/shared/
Dgenerator.c101 r = unit_name_from_path(what, ".device", &device); in write_fsck_sysroot_service()
273 r = unit_name_from_path(node, ".device", &unit); in generator_write_timeouts()
315 r = unit_name_from_path(node, ".device", &unit); in generator_write_device_deps()
334 r = unit_name_from_path(what, ".device", &unit); in generator_write_initrd_root_device_deps()
380 r = unit_name_from_path(what, ".swap", &where_unit); in generator_hook_up_mkswap()
455 r = unit_name_from_path(where, ".mount", &where_unit); in generator_hook_up_mkfs()
518 r = unit_name_from_path(where, ".mount", &where_unit); in generator_hook_up_growfs()
/systemd-251/src/veritysetup/
Dveritysetup-generator.c98 r = unit_name_from_path(u, ".device", &d); in create_device()
101 r = unit_name_from_path(v, ".device", &e); in create_device()
369 r = unit_name_from_path(du, ".device", &dd); in create_disk()
373 r = unit_name_from_path(hu, ".device", &hd); in create_disk()
/systemd-251/src/cryptsetup/
Dcryptsetup-generator.c144 r = unit_name_from_path(where, ".mount", &u); in generate_device_mount()
163 r = unit_name_from_path(device, ".device", &device_unit); in generate_device_mount()
207 r = unit_name_from_path(device_mount, ".mount", &mount); in generate_device_umount()
258 r = unit_name_from_path(udev_node, ".device", &unit); in print_dependencies()
349 r = unit_name_from_path(u, ".device", &d); in create_disk()
/systemd-251/src/gpt-auto-generator/
Dgpt-auto-generator.c118 r = unit_name_from_path(what, ".device", &d); in add_cryptsetup()
228 r = unit_name_from_path(where, ".mount", &unit); in add_mount()
371 r = unit_name_from_path(what, ".swap", &name); in add_swap()
441 r = unit_name_from_path(where, ".automount", &unit); in add_automount()
/systemd-251/src/mount/
Dmount-tool.c439 r = unit_name_from_path(arg_mount_what, ".device", &device_unit); in transient_unit_set_properties()
556 r = unit_name_from_path(arg_mount_where, ".mount", &mount_unit); in start_transient_mount()
633 r = unit_name_from_path(arg_mount_where, ".automount", &automount_unit); in start_transient_automount()
637 r = unit_name_from_path(arg_mount_where, ".mount", &mount_unit); in start_transient_automount()
844 r = unit_name_from_path(where, suffix, &mount_unit); in stop_mount()
/systemd-251/src/basic/
Dunit-name.c580 int unit_name_from_path(const char *path, const char *suffix, char **ret) { in unit_name_from_path() function
734 r = unit_name_from_path(name, ".device", ret); in unit_name_mangle_with_suffix()
742 r = unit_name_from_path(name, ".mount", ret); in unit_name_mangle_with_suffix()
Dunit-name.h50 int unit_name_from_path(const char *path, const char *suffix, char **ret);
/systemd-251/src/hibernate-resume/
Dhibernate-resume-generator.c91 r = unit_name_from_path(arg_resume_device, ".device", &device_unit); in process_resume()
/systemd-251/src/fstab-generator/
Dfstab-generator.c121 r = unit_name_from_path(what, ".swap", &name); in add_swap()
405 r = unit_name_from_path(where, ".mount", &name); in add_mount()
533 r = unit_name_from_path(where, ".automount", &automount_name); in add_mount()
/systemd-251/src/integritysetup/
Dintegritysetup-generator.c57 r = unit_name_from_path(device, ".device", &dd); in create_disk()
/systemd-251/src/core/
Dswap.c284 r = unit_name_from_path(s->what, ".swap", &e); in swap_verify()
426 r = unit_name_from_path(what, ".swap", &e); in swap_setup_unit()
1425 r = unit_name_from_path(dn, ".swap", &e); in swap_process_device_new()
1439 q = unit_name_from_path(devlink, ".swap", &n); in swap_process_device_new()
Ddevice.c530 r = unit_name_from_path(path, ".device", &e); in device_setup_unit()
737 r = unit_name_from_path(path, ".device", &e); in device_update_found_by_name()
Dmount.c563 r = unit_name_from_path(m->where, ".mount", &e); in mount_verify()
1702 r = unit_name_from_path(where, ".mount", &e); in mount_setup_unit()
Dautomount.c192 r = unit_name_from_path(a->where, ".automount", &e); in automount_verify()
Dunit.c1516 r = unit_name_from_path(prefix, ".mount", &p); in unit_add_mount_dependencies()
3576 r = unit_name_from_path(what, ".device", &e); in unit_add_node_dependency()
/systemd-251/src/test/
Dtest-unit-name.c112 assert_se(unit_name_from_path(path, suffix, &t) == ret); in test_unit_name_from_path_one()
143 TEST(unit_name_from_path) { in TEST() argument