/systemd-251/src/shared/ |
D | generator.c | 144 const char *where, in generator_write_fsck_deps() argument 152 assert(where); in generator_write_fsck_deps() 156 if (in_initrd() && PATH_IN_SET(where, "/", "/usr")) { in generator_write_fsck_deps() 157 log_debug("Skipping fsck for %s in initrd.", where); in generator_write_fsck_deps() 177 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() 237 const char *where, in generator_write_timeouts() argument 261 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout); in generator_write_timeouts() [all …]
|
D | mount-setup.c | 46 const char *where; member 122 if (path_equal(path, mount_table[i].where)) in mount_point_is_api() 161 (void) label_fix(p->where, LABEL_IGNORE_ENOENT|LABEL_IGNORE_EROFS); in mount_one() 163 r = path_is_mount_point(p->where, NULL, AT_SYMLINK_FOLLOW); in mount_one() 165 … log_full_errno(priority, r, "Failed to determine whether %s is a mount point: %m", p->where); in mount_one() 178 (void) mkdir_p_label(p->where, 0755); in mount_one() 180 (void) mkdir_p(p->where, 0755); in mount_one() 184 p->where, 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() [all …]
|
D | mount-util.h | 59 const char *where, 68 const char *where, in mount_follow_verbose() argument 72 return mount_verbose_full(error_log_level, what, where, type, flags, options, true); in mount_follow_verbose() 78 const char *where, in mount_nofollow_verbose() argument 82 return mount_verbose_full(error_log_level, what, where, type, flags, options, false); in mount_nofollow_verbose() 87 const char *where,
|
D | generator.h | 20 const char *where, 26 const char *where, 60 const char *where, 73 const char *where, 77 const char *where,
|
D | dissect-image.c | 1297 const char *where, in mount_partition() argument 1309 assert(where); in mount_partition() 1336 r = mkdir_p_root(where, directory, uid_shift, (gid_t) uid_shift, 0755); in mount_partition() 1340 r = chase_symlinks(directory, where, CHASE_PREFIX_ROOT, &chased, NULL); in mount_partition() 1350 r = mkdir_p(where, 0755); in mount_partition() 1355 p = where; in mount_partition() 1422 static int mount_root_tmpfs(const char *where, uid_t uid_shift, DissectImageFlags flags) { in mount_root_tmpfs() argument 1426 assert(where); in mount_root_tmpfs() 1431 r = mkdir_p(where, 0755); in mount_root_tmpfs() 1441 r = mount_nofollow_verbose(LOG_DEBUG, "rootfs", where, "tmpfs", MS_NODEV, options); in mount_root_tmpfs() [all …]
|
D | mount-util.c | 647 const char *where, in mount_verbose_full() argument 667 where, strnull(fl), strempty(o)); in mount_verbose_full() 670 where, strnull(fl), strempty(o)); 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()
|
/systemd-251/src/fstab-generator/ |
D | fstab-generator.c | 196 const char *where, in write_timeout() argument 213 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout); in write_timeout() 222 static int write_idle_timeout(FILE *f, const char *where, const char *opts) { in write_idle_timeout() argument 223 return write_timeout(f, where, opts, in write_idle_timeout() 227 static int write_mount_timeout(FILE *f, const char *where, const char *opts) { in write_mount_timeout() argument 228 return write_timeout(f, where, opts, in write_mount_timeout() 344 const char *where, in add_mount() argument 363 assert(where); in add_mount() 371 if (!is_path(where)) { in add_mount() 372 log_warning("Mount point %s is not a valid path, ignoring.", where); in add_mount() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-mount.c | 493 const char *where; in mount_all() member 576 _cleanup_free_ char *where = NULL, *options = NULL, *prefixed = NULL; in mount_all() local 592 … r = chase_symlinks(mount_table[k].where, dest, CHASE_NONEXISTENT|CHASE_PREFIX_ROOT, &where, NULL); in mount_all() 594 … return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, mount_table[k].where); in mount_all() 598 r = path_is_mount_point(where, NULL, 0); in mount_all() 600 … return log_error_errno(r, "Failed to detect whether %s is a mount point: %m", where); in mount_all() 609 r = mkdir_parents_safe(dest, where, 0755, u, u, 0); in mount_all() 611 r = mkdir_p_safe(dest, where, 0755, u, u, 0); in mount_all() 614 … return log_error_errno(r, "Failed to create directory %s: %m", where); in mount_all() 616 log_debug_errno(r, "Failed to create directory %s: %m", where); in mount_all() [all …]
|
/systemd-251/src/gpt-auto-generator/ |
D | gpt-auto-generator.c | 196 const char *where, in add_mount() argument 214 assert(where); in add_mount() 217 log_debug("Adding %s: %s fstype=%s", where, what, fstype ?: "(any)"); in add_mount() 228 r = unit_name_from_path(where, ".mount", &unit); in add_mount() 250 r = generator_write_fsck_deps(f, arg_dest, what, where, fstype); in add_mount() 263 what, where); in add_mount() 278 r = generator_hook_up_growfs(arg_dest, where, post); in add_mount() 292 static int path_is_busy(const char *where) { in path_is_busy() argument 296 r = path_is_mount_point(where, NULL, AT_SYMLINK_FOLLOW); in path_is_busy() 305 return log_warning_errno(r, "Cannot check if \"%s\" is a mount point: %m", where); in path_is_busy() [all …]
|
/systemd-251/src/core/ |
D | automount.c | 98 if (a->where) { in unmount_autofs() 99 r = repeat_unmount(a->where, MNT_DETACH|UMOUNT_NOFOLLOW); in unmount_autofs() 113 a->where = mfree(a->where); in automount_done() 140 parent = dirname_malloc(a->where); in automount_add_mount_dependencies() 189 if (path_equal(a->where, "/")) in automount_verify() 192 r = unit_name_from_path(a->where, ".automount", &e); in automount_verify() 215 if (a->where) in automount_set_where() 218 r = unit_name_to_path(UNIT(a)->id, &a->where); in automount_set_where() 222 path_simplify(a->where); in automount_set_where() 341 prefix, a->where, in automount_dump() [all …]
|
D | mount.c | 248 m->where = mfree(m->where); in mount_done() 298 if (!path_equal(m->where, "/")) { in mount_add_mount_dependencies() 303 parent = dirname_malloc(m->where); in mount_add_mount_dependencies() 325 s = manager_get_units_requiring_mounts_for(UNIT(m)->manager, m->where); in mount_add_mount_dependencies() 375 if (path_equal(m->where, "/")) in mount_add_device_dependencies() 445 if (p && fstab_is_extrinsic(m->where, p->options)) in mount_is_extrinsic() 461 e = path_startswith(m->where, "/sysroot"); in mount_add_default_ordering_dependencies() 563 r = unit_name_from_path(m->where, ".mount", &e); in mount_verify() 570 if (mount_point_is_api(m->where) || mount_point_ignore(m->where)) in mount_verify() 571 … SYNTHETIC_ERRNO(ENOEXEC), "Cannot create mount unit for API file system %s. Refusing.", m->where); in mount_verify() [all …]
|
D | import-creds.c | 471 static int symlink_credential_dir(const char *envvar, const char *path, const char *where) { in symlink_credential_dir() argument 476 assert(where); in symlink_credential_dir() 484 if (path_equal(path, where)) in symlink_credential_dir() 487 r = symlink_idempotent(path, where, /* make_relative= */ true); in symlink_credential_dir() 489 return log_error_errno(r, "Failed to link $%s to %s: %m", envvar, where); in symlink_credential_dir()
|
D | dbus-automount.c | 13 … SD_BUS_PROPERTY("Where", "s", NULL, offsetof(Automount, where), SD_BUS_VTABLE_PROPERTY_CONST), 37 return bus_set_transient_path(u, name, &a->where, message, flags, error); in bus_automount_set_transient_property()
|
D | dbus-mount.c | 44 SD_BUS_PROPERTY("Where", "s", NULL, offsetof(Mount, where), SD_BUS_VTABLE_PROPERTY_CONST), 80 return bus_set_transient_path(u, name, &m->where, message, flags, error); in bus_mount_set_transient_property()
|
/systemd-251/src/portable/ |
D | portable.c | 170 const char *where, in extract_now() argument 195 assert(where); in extract_now() 200 r = open_extension_release(where, image_name, &os_release_path, &os_release_fd); in extract_now() 203 r = open_os_release(where, &os_release_path, &os_release_fd); in extract_now() 234 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, where); in extract_now() 246 r = chase_symlinks_and_opendir(*i, where, 0, &resolved, &d); in extract_now() 297 m = portable_metadata_new(de->d_name, where, con, fd); in extract_now() 1075 const char *where; in attached_path() local 1080 where = paths->runtime_attached; in attached_path() 1082 where = paths->persistent_attached; in attached_path() [all …]
|
/systemd-251/src/import/ |
D | pull-tar.c | 492 const char *where; in tar_pull_job_on_open_disk_tar() local 504 where = i->local; in tar_pull_job_on_open_disk_tar() 512 where = i->temp_path; in tar_pull_job_on_open_disk_tar() 515 (void) mkdir_parents_label(where, 0700); in tar_pull_job_on_open_disk_tar() 518 (void) rm_rf(where, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME); in tar_pull_job_on_open_disk_tar() 521 r = btrfs_subvol_make_fallback(where, 0755); in tar_pull_job_on_open_disk_tar() 523 r = RET_NERRNO(mkdir(where, 0755)); in tar_pull_job_on_open_disk_tar() 528 return log_error_errno(r, "Failed to create directory/subvolume %s: %m", where); in tar_pull_job_on_open_disk_tar() 532 (void) import_assign_pool_quota_and_warn(where); in tar_pull_job_on_open_disk_tar() 535 j->disk_fd = import_fork_tar_x(where, &i->tar_pid); in tar_pull_job_on_open_disk_tar()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-match.c | 427 struct bus_match_node *where, in bus_match_add_compare_value() argument 436 assert(where); in bus_match_add_compare_value() 437 assert(IN_SET(where->type, BUS_MATCH_ROOT, BUS_MATCH_VALUE)); in bus_match_add_compare_value() 441 for (c = where->child; c && c->type != t; c = c->next) in bus_match_add_compare_value() 469 c->parent = where; in bus_match_add_compare_value() 470 c->next = where->child; in bus_match_add_compare_value() 473 where->child = c; in bus_match_add_compare_value() 539 struct bus_match_node *where, in bus_match_add_leaf() argument 544 assert(where); in bus_match_add_leaf() 545 assert(IN_SET(where->type, BUS_MATCH_ROOT, BUS_MATCH_VALUE)); in bus_match_add_leaf() [all …]
|
/systemd-251/src/rc-local-generator/ |
D | rc-local-generator.c | 21 static int add_symlink(const char *service, const char *where) { in add_symlink() argument 25 assert(where); in add_symlink() 28 to = strjoina(arg_dest, "/", where, ".wants/", service); in add_symlink()
|
/systemd-251/src/mount/ |
D | mount-tool.c | 829 const char *where, in stop_mount() argument 844 r = unit_name_from_path(where, suffix, &mount_unit); in stop_mount() 846 … return log_error_errno(r, "Failed to make %s unit name from path %s: %m", suffix + 1, where); in stop_mount() 886 ansi_highlight(), where, ansi_normal()); in stop_mount() 893 const char *where) { in stop_mounts() argument 897 if (path_equal(where, "/")) in stop_mounts() 899 "Refusing to operate on root directory: %s", where); in stop_mounts() 901 if (!path_is_normalized(where)) in stop_mounts() 903 "Path contains non-normalized components: %s", where); in stop_mounts() 905 r = stop_mount(bus, where, ".mount"); in stop_mounts() [all …]
|
/systemd-251/src/version/ |
D | version.h.in | 5 * - where a simplified form is expected for compatibility, for example 7 * - where a simplified machine-parsable form is more useful, for example
|
/systemd-251/src/cryptsetup/ |
D | cryptsetup-generator.c | 114 _cleanup_free_ char *u = NULL, *where = NULL, *name_escaped = NULL, *device_unit = NULL; in generate_device_mount() local 136 where = strjoin(arg_runtime_directory, "/", type_prefix, "-", name_escaped); in generate_device_mount() 137 if (!where) in generate_device_mount() 140 r = mkdir(where, 0700); in generate_device_mount() 144 r = unit_name_from_path(where, ".mount", &u); in generate_device_mount() 158 "Options=%s%s\n", device, where, readonly ? "ro" : "rw", canfail ? ",nofail" : ""); in generate_device_mount() 183 *mount = TAKE_PTR(where); in generate_device_mount()
|
/systemd-251/coccinelle/ |
D | flags-set.cocci | 3 /* Disable this transformation in cases where it doesn't make sense or 4 * where it makes the resulting expression more confusing
|
/systemd-251/docs/ |
D | JOURNAL_NATIVE_PROTOCOL.md | 82 possible for all key/value pairs where applicable since the generated datagrams 120 used for specific Journal fields however, where this is expected. Do not use 121 this for Journal fields where this is not expected and where code reasonably 134 the first serialization method, with the exception of one, where the value 162 Journal logging in case they are invoked via systemd's service logic, where
|
/systemd-251/hwdb.d/ |
D | 60-input-id.hwdb | 14 # where /dev/input/eventXX is the device in question. If in 24 # This file must only be used where the input_id builtin assigns the wrong
|
/systemd-251/src/home/ |
D | homed-manager.c | 500 …FOREACH_STRING(where, get_home_root(), "/tmp/", "/var/", "/var/mail/", "/var/tmp/", "/var/spool/")… in search_quota() 504 if (stat(where, &st) < 0) { in search_quota() 506 "Failed to stat %s, ignoring: %m", where); in search_quota() 511 … log_debug("Directory %s is not on a real block device, not checking quota for UID use.", where); in search_quota() 517 …bug("Directory %s is where the home directory is located, not checking quota for UID use.", where); in search_quota() 524 …n same device as previous tested directory, not checking quota for UID use a second time.", where); in search_quota() 533 log_debug_errno(r, "No UID quota support on %s, ignoring.", where); in search_quota() 535 … log_debug_errno(r, "UID quota support for %s prohibited, ignoring.", where); in search_quota() 537 … log_warning_errno(r, "Failed to query quota on %s, ignoring: %m", where); in search_quota() 544 … log_debug_errno(errno, "Quota reports UID " UID_FMT " occupies disk space on %s.", uid, where); in search_quota()
|