/systemd/src/rc-local-generator/ |
H A D | rc-local-generator.c | 41 static int add_symlink(const char *service, const char *where) { argument 46 assert(where); 52 to = strjoin(arg_dest, "/", where, ".wants/", service, NULL);
|
/systemd/src/core/ |
H A D | automount.h | 38 char *where; member in struct:Automount
|
H A D | mount-setup.c | 54 const char *where; member in struct:MountPoint 133 if (path_equal(path, mount_table[i].where)) 159 (void) label_fix(p->where, true, true); 161 r = path_is_mount_point(p->where, AT_SYMLINK_FOLLOW); 163 log_full_errno((p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG, r, "Failed to determine whether %s is a mount point: %m", p->where); 176 (void) mkdir_p_label(p->where, 0755); 178 (void) mkdir_p(p->where, 0755); 182 p->where, 187 p->where, 191 log_full_errno((p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG, errno, "Failed to mount %s at %s: %m", p->type, p->where); 243 _cleanup_free_ char *options = NULL, *controller = NULL, *where = NULL; local [all...] |
H A D | mount.h | 55 char *where; member in struct:Mount
|
H A D | automount.c | 108 if (a->where && 111 r = repeat_unmount(a->where, MNT_DETACH); 124 a->where = mfree(a->where); 137 parent = dirname_malloc(a->where); 171 if (path_equal(a->where, "/")) { 176 r = unit_name_from_path(a->where, ".automount", &e); 203 if (!a->where) { 204 r = unit_name_to_path(u->id, &a->where); 209 path_kill_slashes(a->where); 331 open_ioctl_fd(int dev_autofs_fd, const char *where, dev_t devid) argument [all...] |
H A D | mount.c | 208 m->where = mfree(m->where); 250 if (!path_equal(m->where, "/")) { 254 parent = dirname_malloc(m->where); 278 s = manager_get_units_requiring_mounts_for(UNIT(m)->manager, m->where); 328 if (path_equal(m->where, "/")) 371 if (path_equal(m->where, "/") || 372 path_equal(m->where, "/usr")) 401 if (path_equal(m->where, "/") || 402 path_equal(m->where, "/us 1327 mount_setup_unit( Manager *m, const char *what, const char *where, const char *options, const char *fstype, bool set_flags) argument [all...] |
H A D | unit.c | 1524 * restart" state where it waits for a holdoff timer to elapse 2851 * before 228 where the base for timeouts was not persistent across reboots. */ 3006 * unit itself, where the state isn't updated yet. This is 3694 void unit_warn_if_dir_nonempty(Unit *u, const char* where) { argument 3698 assert(where); 3700 r = dir_is_empty(where); 3704 log_unit_warning_errno(u, r, "Failed to check directory %s: %m", where); 3711 LOG_UNIT_MESSAGE(u, "Directory %s to mount over is not empty, mounting anyway.", where), 3712 "WHERE=%s", where, 3716 int unit_fail_if_symlink(Unit *u, const char* where) { argument [all...] |
/systemd/src/shared/ |
H A D | generator.c | 92 const char *where, 100 assert(where); 118 if (path_equal(where, "/")) { 131 if (in_initrd() && path_equal(where, "/sysroot")) { 157 const char *where, 177 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout); 88 generator_write_fsck_deps( FILE *f, const char *dir, const char *what, const char *where, const char *fstype) argument 154 generator_write_timeouts( const char *dir, const char *what, const char *where, const char *opts, char **filtered) argument
|
/systemd/src/fstab-generator/ |
H A D | fstab-generator.c | 112 /* use what as where, to have a nicer error message */ 145 static int write_idle_timeout(FILE *f, const char *where, const char *opts) { argument 159 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout); 229 const char *where, 247 assert(where); 255 if (!is_path(where)) { 256 log_warning("Mount point %s is not a valid path, ignoring.", where); 260 if (mount_point_is_api(where) || 261 mount_point_ignore(where)) 264 if (path_equal(where, "/")) { 227 add_mount( const char *what, const char *where, const char *fstype, const char *opts, int passno, bool noauto, bool nofail, bool automount, const char *post, const char *source) argument 424 _cleanup_free_ char *where = NULL, *what = NULL; local [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-match.c | 443 struct bus_match_node *where, 452 assert(where); 453 assert(where->type == BUS_MATCH_ROOT || where->type == BUS_MATCH_VALUE); 457 for (c = where->child; c && c->type != t; c = c->next) 488 c->parent = where; 489 c->next = where->child; 492 where->child = c; 558 struct bus_match_node *where, 566 assert(where); 442 bus_match_add_compare_value( struct bus_match_node *where, enum bus_match_node_type t, uint8_t value_u8, const char *value_str, struct bus_match_node **ret) argument 557 bus_match_find_compare_value( struct bus_match_node *where, enum bus_match_node_type t, uint8_t value_u8, const char *value_str, struct bus_match_node **ret) argument 594 bus_match_add_leaf( struct bus_match_node *where, struct match_callback *callback) argument 622 bus_match_find_leaf( struct bus_match_node *where, sd_bus_message_handler_t callback, void *userdata, struct bus_match_node **ret) argument [all...] |
H A D | bus-message.c | 249 /* Signature "(yv)" where the variant contains "s" */ 309 /* Signature "(yv)" where the variant contains "g" */ 2878 this position, so that during parsing we know where to to 3679 size_t where, p = 0, framing, sz; local 3685 where = rindex + c->item_size - sz; 3686 r = message_peek_body(m, &where, 1, sz, &q); 3698 where = rindex + framing; 3699 r = message_peek_body(m, &where, 1, *n_offsets * sz, &q); 3762 size_t k, where; local 3768 where 3815 size_t previous = 0, where; local 4339 size_t where; local 5277 size_t where, end; local [all...] |
/systemd/src/gpt-auto-generator/ |
H A D | gpt-auto-generator.c | 165 const char *where, 178 assert(where); 181 log_debug("Adding %s: %s %s", where, what, strna(fstype)); 193 r = unit_name_from_path(where, ".mount", &unit); 215 r = generator_write_fsck_deps(f, arg_dest, what, where, fstype); 224 what, where); 251 static bool path_is_busy(const char *where) { argument 255 r = path_is_mount_point(where, AT_SYMLINK_FOLLOW); 267 if (dir_is_empty(where) <= 0) 276 const char *where, 162 add_mount( const char *id, const char *what, const char *where, const char *fstype, bool rw, const char *options, const char *description, const char *post) argument 273 probe_and_add_mount( const char *id, const char *what, const char *where, bool rw, const char *description, const char *post) argument 376 add_automount( const char *id, const char *what, const char *where, const char *fstype, bool rw, const char *options, const char *description, usec_t timeout) argument [all...] |
/systemd/src/nspawn/ |
H A D | nspawn-mount.c | 290 const char *where; member in struct:MountPoint 319 _cleanup_free_ char *where = NULL, *options = NULL; local 328 where = prefix_root(dest, mount_table[k].where); 329 if (!where) 332 r = path_is_mount_point(where, AT_SYMLINK_FOLLOW); 334 return log_error_errno(r, "Failed to detect whether %s is a mount point: %m", where); 340 r = mkdir_p(where, 0755); 343 return log_error_errno(r, "Failed to create directory %s: %m", where); 345 log_warning_errno(r, "Failed to create directory %s: %m", where); 408 const char *where; local 474 const char *where, *options; local 515 const char *where, *options; local [all...] |
H A D | nspawn.c | 1029 const char *where, *check, *what; local 1050 where = prefix_roota(dest, "/etc/localtime"); 1051 r = readlink_malloc(where, &q); 1069 r = unlink(where); 1071 log_error_errno(errno, "Failed to remove existing timezone info %s in container: %m", where); 1076 if (symlink(what, where) < 0) { 1081 r = userns_lchown(where, 0, 0); 1089 const char *where = NULL; local 1098 where = prefix_roota(dest, "/etc/resolv.conf"); 1100 r = copy_file("/etc/resolv.conf", where, O_TRUN 2134 mount_device(const char *what, const char *where, const char *directory, bool rw) argument 2196 mount_devices( const char *where, const char *root_device, bool root_device_rw, const char *home_device, bool home_device_rw, const char *srv_device, bool srv_device_rw) argument [all...] |
/systemd/src/sysv-generator/ |
H A D | sysv-generator.c | 118 static int add_symlink(const char *service, const char *where) { argument 123 assert(where); 126 to = strjoina(arg_dest, "/", where, ".wants/", service);
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 2313 * Finds where the unit is defined on disk. Returns 0 if the unit 3393 const char *where; member in struct:UnitStatusInfo 3560 if (i->where) 3561 printf(" Where: %s\n", i->where); 3804 i->where = s;
|