Home
last modified time | relevance | path

Searched refs:path_equal (Results 1 – 25 of 71) sorted by relevance

123

/systemd-251/src/shared/
Dpretty-print.c227 if (path_equal(*name, "environment.d")) in guess_type()
247 if (path_equal(n, "environment")) in guess_type()
250 if (path_equal(n, "udev/hwdb.d")) in guess_type()
253 if (path_equal(n, "udev/rules.d")) in guess_type()
256 if (path_equal(n, "kernel/install.d")) in guess_type()
259 if (path_equal(n, "systemd/ntp-units.d")) { in guess_type()
264 if (path_equal(n, "systemd/relabel-extra.d")) { in guess_type()
274 if (path_equal(n, "systemd/user-preset")) in guess_type()
Dgenerator.c177 if (path_equal(where, "/")) { in generator_write_fsck_deps()
195 if (in_initrd() && path_equal(where, "/sysroot")) { in generator_write_fsck_deps()
203 } else if (in_initrd() && path_equal(where, "/sysusr/usr")) { in generator_write_fsck_deps()
216 dep = path_equal(where, "/usr") ? "Wants" : "Requires"; in generator_write_fsck_deps()
Dmount-setup.c122 if (path_equal(path, mount_table[i].where)) in mount_point_is_api()
139 if (path_equal(path, i)) in mount_point_ignore()
382 if (path_equal(path, "/run/initramfs")) in relabel_cb()
Dmount-util.c266 top_autofs = top_autofs || path_equal(path, prefix); in bind_remount_recursive_with_mountinfo()
275 if (!path_equal(path, prefix)) { in bind_remount_recursive_with_mountinfo()
279 if (path_equal(*i, prefix)) in bind_remount_recursive_with_mountinfo()
386 if (path_equal(x, prefix)) in bind_remount_recursive_with_mountinfo()
Dswitch-root.c41 if (path_equal(new_root, "/")) in switch_root()
Ddiscover-image.h106 if (i->path && path_equal(i->path, "/")) in IMAGE_IS_HOST()
Dudev-util.c193 if (path_equal(devlink, data->devlink)) in device_monitor_handler()
196 … if (sd_device_get_devname(device, &devlink) >= 0 && path_equal(devlink, data->devlink)) in device_monitor_handler()
Dfstab-util.c76 if (path_equal(m->mnt_dir, mount)) in fstab_is_mount_point()
/systemd-251/src/test/
Dtest-fs-util.c70 assert_se(path_equal(result, "/usr")); in TEST()
76 assert_se(path_equal(result, "/usr/")); in TEST()
89 assert_se(path_equal(result, q)); in TEST()
96 assert_se(path_equal(result, qslash)); in TEST()
103 assert_se(path_equal(result, q)); in TEST()
108 assert_se(path_equal(result, qslash)); in TEST()
116 assert_se(path_equal(result, "/")); in TEST()
121 assert_se(path_equal(result, temp)); in TEST()
130 assert_se(r > 0 && path_equal(result, temp)); in TEST()
137 assert_se(r > 0 && path_equal(result, q)); in TEST()
[all …]
Dtest-path-util.c120 assert_se(path_equal(a, a) == 1); in test_path_compare_one()
121 assert_se(path_equal(b, b) == 1); in test_path_compare_one()
122 assert_se(path_equal(a, b) == (expected == 0)); in test_path_compare_one()
123 assert_se(path_equal(b, a) == (expected == 0)); in test_path_compare_one()
157 assert_se(path_equal("/", "/")); in TEST()
158 assert_se(path_equal("/", "//")); in TEST()
160 assert_se(path_equal("/", "/./")); in TEST()
161 assert_se(!path_equal("/", "/../")); in TEST()
163 assert_se(!path_equal("/", "/.../")); in TEST()
251 assert_se(path_equal(p, "/bin/sh")); in TEST()
[all …]
Dtest-cgroup.c83 assert_se(path_equal(path, test_a)); in TEST()
89 assert_se(path_equal(path, test_d)); in TEST()
101 assert_se(path_equal(path, full_d)); in TEST()
Dtest-fd-util.c139 assert_se(path_equal(path, "/dev/null")); in TEST()
143 assert_se(path_equal(path, "/dev/null")); in TEST()
147 assert_se(path_equal(path, "/dev/null")); in TEST()
180 assert_se(path_equal(path, "/dev/null")); in TEST()
Dtest-devnum-util.c86 assert_se(path_equal(path, resolved)); in test_device_path_make_canonical_one()
Dtest-terminal-util.c165 assert_se(path_equal(stdin_name, ctty)); in TEST()
/systemd-251/coccinelle/
Dempty-or-root.cocci5 - (isempty(s) || path_equal(s, "/"))
10 - (!isempty(s) && !path_equal(s, "/"))
/systemd-251/src/basic/
Dmkdir.c204 if (!(path_equal(pp, "/") || isempty(pp) || path_equal(pp, "."))) { in mkdir_p_root()
213 if (path_equal(bn, "/") || isempty(bn) || path_equal(bn, ".")) in mkdir_p_root()
Ddevnum-util.c104 if (path_equal(path, "/run/systemd/inaccessible/chr")) { in device_path_parse_major_minor()
107 } else if (path_equal(path, "/run/systemd/inaccessible/blk")) { in device_path_parse_major_minor()
Dpath-util.c469 return path_equal(a, b) || files_same(a, b, flags) > 0; in path_equal_or_files_same()
490 return path_equal(a_basename, b_basename); in path_equal_filename()
1288 return path_equal(path, "/"); in empty_or_root()
1293 if (path_equal(*i, path)) in path_strv_contains()
1307 if (path_equal(j, path)) in prefixed_path_strv_contains()
Dpath-util.h66 static inline bool path_equal(const char *a, const char *b) { in path_equal() function
81 return !!a == !!b && (!a || path_equal(a, b)); in path_equal_ptr()
/systemd-251/src/delta/
Ddelta.c85 return path_equal(x, y); in equivalent()
390 if (path_equal(target, tmp)) { in should_skip_path()
444 if (path_equal(o, f)) { in process_suffix()
/systemd-251/src/remount-fs/
Dremount-fs.c99 if (path_equal(me->mnt_dir, "/")) in run()
/systemd-251/src/fstab-generator/
Dfstab-generator.c388 if (path_equal(where, "/")) { in add_mount()
710 if (path_equal(arg_root_what, "/dev/nfs") || in sysroot_is_nfsroot()
875 if (path_equal(arg_usr_what, "/dev/nfs")) { in add_sysroot_usr_mount()
/systemd-251/src/systemctl/
Dsystemctl-edit.c179 if (path_equal(*path, new_path)) in create_edit_temp_file()
290 if (!path_equal(fragment_path, new_path) && access(new_path, F_OK) >= 0) { in unit_file_create_copy()
/systemd-251/src/core/
Ddbus-cgroup.c1226 if (path_equal(path, b->path)) { in bus_cgroup_set_property()
1311 if (path_equal(b->path, path)) { in bus_cgroup_set_property()
1384 if (path_equal(b->path, path)) { in bus_cgroup_set_property()
1462 if (path_equal(path, b->path)) { in bus_cgroup_set_property()
1559 if (path_equal(b->path, path)) { in bus_cgroup_set_property()
1657 if (path_equal(b->path, path)) { in bus_cgroup_set_property()
/systemd-251/src/volatile-root/
Dvolatile-root.c149 if (path_equal(path, "/")) in run()

123