Searched refs:new_path (Results 1 - 7 of 7) sorted by relevance
/systemd/src/basic/ |
H A D | label.c | 63 int symlink_label(const char *old_path, const char *new_path) { argument 67 assert(new_path); 69 r = mac_selinux_create_file_prepare(new_path, S_IFLNK); 73 if (symlink(old_path, new_path) < 0) 81 return mac_smack_fix(new_path, false, false);
|
H A D | label.h | 28 int symlink_label(const char *old_path, const char *new_path);
|
H A D | btrfs-util.h | 86 int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlags flags); 87 int btrfs_subvol_snapshot(const char *old_path, const char *new_path, BtrfsSnapshotFlags flags);
|
H A D | btrfs-util.c | 1709 int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlags flags) { argument 1715 assert(new_path); 1724 r = btrfs_subvol_make(new_path); 1728 r = copy_directory_fd(old_fd, new_path, true); 1730 (void) btrfs_subvol_remove(new_path, BTRFS_REMOVE_QUOTA); 1735 r = btrfs_subvol_set_read_only(new_path, true); 1737 (void) btrfs_subvol_remove(new_path, BTRFS_REMOVE_QUOTA); 1745 r = extract_subvolume_name(new_path, &subvolume); 1749 new_fd = open_parent(new_path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY); 1756 int btrfs_subvol_snapshot(const char *old_path, const char *new_path, BtrfsSnapshotFlag argument [all...] |
/systemd/src/shared/ |
H A D | machine-image.c | 465 _cleanup_free_ char *new_path = NULL, *nn = NULL; local 514 new_path = file_in_same_dir(i->path, new_name); 521 new_path = file_in_same_dir(i->path, fn); 529 if (!new_path) 536 r = rename_noreplace(AT_FDCWD, i->path, AT_FDCWD, new_path); 542 (void) chattr_path(new_path, true, FS_IMMUTABLE_FL); 545 i->path = new_path; 546 new_path = NULL; 577 const char *new_path; local 607 new_path [all...] |
H A D | install.c | 278 const char *new_path, 287 assert(new_path); 293 mkdir_parents_label(new_path, 0755); 295 if (symlink(old_path, new_path) >= 0) { 296 unit_file_changes_add(changes, n_changes, UNIT_FILE_SYMLINK, new_path, old_path); 303 r = readlink_malloc(new_path, &dest); 313 r = symlink_atomic(old_path, new_path); 317 unit_file_changes_add(changes, n_changes, UNIT_FILE_UNLINK, new_path, NULL); 318 unit_file_changes_add(changes, n_changes, UNIT_FILE_SYMLINK, new_path, old_path); 276 create_symlink( const char *old_path, const char *new_path, bool force, UnitFileChange **changes, unsigned *n_changes) argument
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 5815 static int create_edit_temp_file(const char *new_path, const char *original_path, char **ret_tmp_fn) { argument 5819 assert(new_path); 5823 r = tempfn_random(new_path, NULL, &t); 5825 return log_error_errno(r, "Failed to determine temporary filename for \"%s\": %m", new_path); 5827 r = mkdir_parents(new_path, 0755); 5829 return log_error_errno(r, "Failed to create directories for \"%s\": %m", new_path); 6074 char *new_path, *tmp_path; local 6088 r = unit_file_create_copy(*name, path, user_home, user_runtime, &new_path, &tmp_path); 6090 r = unit_file_create_dropin(*name, user_home, user_runtime, &new_path, &tmp_path); 6094 r = strv_push_pair(paths, new_path, tmp_pat [all...] |
Completed in 81 milliseconds