/systemd-251/src/journal/ |
D | test-journal-flush.c | 19 char dn[] = "/var/tmp/test-journal-flush.XXXXXX"; in main() local 27 assert_se(mkdtemp(dn)); in main() 28 (void) chattr_path(dn, FS_NOCOW_FL, FS_NOCOW_FL, NULL); in main() 30 fn = path_join(dn, "test.journal"); in main() 72 assert_se(rmdir(dn) == 0); in main()
|
/systemd-251/src/shutdown/ |
D | umount.c | 253 const char *dn; in loopback_list_get() local 258 sd_device_get_devname(d, &dn) < 0) in loopback_list_get() 261 p = strdup(dn); in loopback_list_get() 305 const char *dn; in dm_list_get() local 310 sd_device_get_devname(d, &dn) < 0) in dm_list_get() 313 p = strdup(dn); in dm_list_get() 362 const char *dn, *md_level; in md_list_get() local 367 sd_device_get_devname(d, &dn) < 0) in md_list_get() 372 … log_warning_errno(r, "Failed to get MD_LEVEL property for %s, ignoring: %m", dn); in md_list_get() 381 p = strdup(dn); in md_list_get()
|
/systemd-251/src/volatile-root/ |
D | volatile-root.c | 179 _cleanup_free_ char *dn = NULL; in run() local 181 r = device_path_make_major_minor(S_IFBLK, devt, &dn); in run() 185 if (symlink(dn, "/run/systemd/volatile-root") < 0) in run()
|
/systemd-251/src/core/ |
D | swap.c | 496 const char *dn, *devlink; in swap_process_new() local 516 if (sd_device_get_devname(d, &dn) >= 0 && !streq(dn, device)) in swap_process_new() 517 (void) swap_setup_unit(m, dn, device, prio, set_flags); in swap_process_new() 1415 const char *dn, *devlink; in swap_process_device_new() local 1422 if (sd_device_get_devname(dev, &dn) < 0) in swap_process_device_new() 1425 r = unit_name_from_path(dn, ".swap", &e); in swap_process_device_new() 1427 … log_debug_errno(r, "Cannot convert device name '%s' to unit name, ignoring: %m", dn); in swap_process_device_new() 1433 r = swap_set_devnode(SWAP(u), dn); in swap_process_device_new() 1448 q = swap_set_devnode(SWAP(u), dn); in swap_process_device_new() 1458 const char *dn; in swap_process_device_remove() local [all …]
|
D | device.c | 597 const char *dn, *alias; in device_process_new() local 612 if (sd_device_get_devname(dev, &dn) >= 0) in device_process_new() 613 (void) device_setup_unit(m, dev, dn, false); in device_process_new()
|
D | namespace.c | 835 const char *dn, *bn, *t; in clone_device_node() local 854 dn = strjoina(temporary_mount, d); in clone_device_node() 859 r = mknod(dn, st.st_mode, st.st_rdev); in clone_device_node() 872 r = mknod(dn, S_IFREG, 0); in clone_device_node() 879 r = mount_nofollow_verbose(LOG_DEBUG, d, dn, NULL, MS_BIND, NULL); in clone_device_node()
|
/systemd-251/src/basic/ |
D | cgroup-util.c | 482 const char *dn; in join_path_legacy() local 488 dn = controller_to_dirname(controller); in join_path_legacy() 491 t = path_join("/sys/fs/cgroup", dn); in join_path_legacy() 493 t = path_join("/sys/fs/cgroup", dn, suffix); in join_path_legacy() 495 t = path_join("/sys/fs/cgroup", dn, path); in join_path_legacy() 497 t = path_join("/sys/fs/cgroup", dn, path, suffix); in join_path_legacy() 570 const char *cpath, *dn; in controller_is_v1_accessible() local 574 dn = controller_to_dirname(controller); in controller_is_v1_accessible() 580 cpath = strjoina("/sys/fs/cgroup/", dn, root, root ? "/cgroup.procs" : NULL); in controller_is_v1_accessible()
|
/systemd-251/src/dissect/ |
D | dissect.c | 753 _cleanup_free_ char *dn = NULL; in action_copy() local 757 dn = dirname_malloc(arg_target); in action_copy() 758 if (!dn) in action_copy() 761 r = chase_symlinks(dn, mounted_dir, CHASE_PREFIX_ROOT|CHASE_WARN, NULL, &dfd); in action_copy() 763 return log_error_errno(r, "Failed to open '%s': %m", dn); in action_copy()
|
/systemd-251/src/home/ |
D | homework-luks.c | 1979 _cleanup_free_ char *dn = NULL; in wait_for_devlink() local 1995 dn = dirname_malloc(path); in wait_for_devlink() 1997 if (!dn) in wait_for_devlink() 2000 log_info("Watching %s", dn); in wait_for_devlink() 2002 …if (inotify_add_watch(inotify_fd, dn, IN_CREATE|IN_MOVED_TO|IN_ONLYDIR|IN_DELETE_SELF|IN_MOVE_SELF… in wait_for_devlink() 2004 … return log_error_errno(errno, "Failed to add watch on %s: %m", dn); in wait_for_devlink() 2008 if (empty_or_root(dn)) in wait_for_devlink() 2011 dn = dirname_malloc(dn); in wait_for_devlink()
|
/systemd-251/src/mount/ |
D | mount-tool.c | 1113 const char *dn; in acquire_mount_where() local 1115 if (sd_device_get_devname(d, &dn) < 0) in acquire_mount_where() 1118 name = basename(dn); in acquire_mount_where()
|
/systemd-251/src/partition/ |
D | repart.c | 2838 _cleanup_free_ char *dn = NULL, *fn = NULL; in do_copy_files() local 2847 r = path_extract_directory(*target, &dn); in do_copy_files() 2851 r = mkdir_p_root(fs, dn, UID_INVALID, GID_INVALID, 0755); in do_copy_files() 2853 … return log_error_errno(r, "Failed to create parent directory '%s': %m", dn); in do_copy_files() 2855 …pfd = chase_symlinks_and_open(dn, fs, CHASE_PREFIX_ROOT|CHASE_WARN, O_RDONLY|O_DIRECTORY|O_CLOEXEC… in do_copy_files() 2873 _cleanup_free_ char *dn = NULL, *fn = NULL; in do_copy_files() local 2884 r = path_extract_directory(*target, &dn); in do_copy_files() 2888 r = mkdir_p_root(fs, dn, UID_INVALID, GID_INVALID, 0755); in do_copy_files() 2892 …pfd = chase_symlinks_and_open(dn, fs, CHASE_PREFIX_ROOT|CHASE_WARN, O_RDONLY|O_DIRECTORY|O_CLOEXEC… in do_copy_files()
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 2250 _cleanup_free_ char *sl = NULL, *prefixed = NULL, *dn = NULL, *t = NULL; in copy_devnodes() local 2272 dn = path_join("/dev", S_ISCHR(st.st_mode) ? "char" : "block"); in copy_devnodes() 2273 if (!dn) in copy_devnodes() 2276 r = userns_mkdir(dest, dn, 0755, 0, 0); in copy_devnodes() 2278 return log_error_errno(r, "Failed to create '%s': %m", dn); in copy_devnodes() 2280 if (asprintf(&sl, "%s/%u:%u", dn, major(st.st_rdev), minor(st.st_rdev)) < 0) in copy_devnodes()
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 930 _cleanup_free_ char *dn = NULL; in path_open_parent_safe() local 938 dn = dirname_malloc(path); in path_open_parent_safe() 939 if (!dn) in path_open_parent_safe() 942 r = chase_symlinks(dn, arg_root, CHASE_SAFE|CHASE_WARN, NULL, &fd); in path_open_parent_safe()
|
/systemd-251/hwdb.d/ |
D | usb.ids | 464 2f17 Color LaserJet 2605dn 22873 5228 Laser Printer 1720dn
|
D | 20-usb-vendor-model.hwdb | 1329 ID_MODEL_FROM_DATABASE=Color LaserJet 2605dn 68553 ID_MODEL_FROM_DATABASE=Laser Printer 1720dn
|