/systemd-251/src/test/ |
D | test-copy.c | 43 assert_se(copy_file(fn, fn_copy, 0, 0644, 0, 0, COPY_REFLINK) == 0); in TEST() 66 assert_se(copy_file_fd("/a/file/which/does/not/exist/i/guess", out_fd, COPY_REFLINK) < 0); in TEST() 67 assert_se(copy_file_fd(in_fn, out_fd, COPY_REFLINK) >= 0); in TEST() 131 …assert_se(copy_tree(original_dir, copy_dir, UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_MERGE|COPY… in TEST() 183 assert_se(copy_tree(original_dir, copy_dir, UID_INVALID, GID_INVALID, COPY_REFLINK) < 0); in TEST() 184 …(copy_tree("/tmp/inexistent/foo/bar/fsdoi", copy_dir, UID_INVALID, GID_INVALID, COPY_REFLINK) < 0); in TEST() 244 r = copy_bytes(fd, fd2, max_bytes, try_reflink ? COPY_REFLINK : 0); in test_copy_bytes_regular_file_one() 260 r = copy_bytes(fd2, fd3, max_bytes, try_reflink ? COPY_REFLINK : 0); in test_copy_bytes_regular_file_one() 300 r = copy_file_atomic("/etc/fstab", q, 0644, 0, 0, COPY_REFLINK); in TEST() 304 assert_se(copy_file_atomic("/etc/fstab", q, 0644, 0, 0, COPY_REFLINK) == -EEXIST); in TEST()
|
D | test-fs-util.c | 818 assert_se(copy_file(p, q, 0, MODE_INVALID, 0, 0, COPY_REFLINK) >= 0); in TEST()
|
/systemd-251/src/dissect/ |
D | dissect.c | 714 r = copy_bytes(source_fd, STDOUT_FILENO, UINT64_MAX, COPY_REFLINK); in action_copy() 723 …r = copy_directory_fd(source_fd, arg_target, COPY_REFLINK|COPY_MERGE_EMPTY|COPY_SIGINT|COPY_HARDLI… in action_copy() 740 r = copy_bytes(source_fd, target_fd, UINT64_MAX, COPY_REFLINK); in action_copy() 771 r = copy_bytes(STDIN_FILENO, target_fd, UINT64_MAX, COPY_REFLINK); in action_copy() 795 …(source_fd, ".", dfd, basename(arg_target), UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_REPLACE|CO… in action_copy() 797 …opy_tree_at(source_fd, ".", target_fd, ".", UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_REPLACE|CO… in action_copy() 809 r = copy_bytes(source_fd, target_fd, UINT64_MAX, COPY_REFLINK); in action_copy()
|
/systemd-251/src/shared/ |
D | data-fd-util.c | 290 … r = copy_bytes(fd, tmp_fd, DATA_FD_TMP_LIMIT - DATA_FD_MEMORY_LIMIT - remains_size, COPY_REFLINK); in copy_data_fd() 319 r = copy_bytes(copy_fd, tmp_fd, UINT64_MAX, COPY_REFLINK); in copy_data_fd() 334 r = copy_bytes(fd, tmp_fd, UINT64_MAX, COPY_REFLINK); in copy_data_fd()
|
D | copy.h | 13 COPY_REFLINK = 1 << 0, /* Try to reflink */ enumerator
|
D | discover-image.c | 837 return copy_file_atomic(path, rs, 0664, 0, 0, COPY_REFLINK); in clone_auxiliary_file() 898 …ic(i->path, new_path, read_only ? 0444 : 0644, FS_NOCOW_FL, FS_NOCOW_FL, COPY_REFLINK|COPY_CRTIME); in image_clone()
|
D | copy.c | 182 if ((copy_flags & COPY_REFLINK)) { in copy_bytes_full()
|
D | btrfs-util.c | 1607 COPY_REFLINK| in btrfs_subvol_snapshot_fd_full()
|
/systemd-251/src/analyze/ |
D | analyze-verify.c | 43 r = copy_file(src, dst, 0, 0644, 0, 0, COPY_REFLINK); in process_aliases()
|
/systemd-251/src/import/ |
D | pull-tar.c | 249 … r = copy_tree(i->final_path, t, UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_HARDLINKS); in tar_pull_make_local_copy() 280 COPY_REFLINK | in tar_pull_make_local_copy()
|
D | import-fs.c | 214 COPY_REFLINK| in import_fs()
|
D | pull-raw.c | 332 COPY_REFLINK | in raw_pull_copy_auxiliary_file() 395 r = copy_bytes(i->raw_job->disk_fd, dfd, UINT64_MAX, COPY_REFLINK); in raw_pull_make_local_copy()
|
/systemd-251/src/firstboot/ |
D | firstboot.c | 321 r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644, 0, 0, COPY_REFLINK); in process_locale() 396 r = copy_file("/etc/vconsole.conf", etc_vconsoleconf, 0, 0644, 0, 0, COPY_REFLINK); in process_keymap()
|
/systemd-251/src/systemctl/ |
D | systemctl-edit.c | 133 r = copy_file(original_path, t, 0, 0644, 0, 0, COPY_REFLINK); in create_edit_temp_file()
|
/systemd-251/src/portable/ |
D | portable.c | 1054 r = copy_file_atomic(from, dropin, 0644, 0, 0, COPY_REFLINK); in install_profile_dropin() 1159 r = copy_bytes(m->fd, fd, UINT64_MAX, COPY_REFLINK); in attach_unit_file()
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 2021 … r = copy_file_atomic("/etc/localtime", where, 0644, 0, 0, COPY_REFLINK|COPY_REPLACE); in setup_timezone() 2155 r = copy_file_atomic(what, where, 0644, 0, 0, COPY_REFLINK|COPY_REPLACE); in setup_resolv_conf() 2157 r = copy_file(what, where, O_TRUNC|O_NOFOLLOW, 0644, 0, 0, COPY_REFLINK); in setup_resolv_conf() 5701 …e, np, O_EXCL, arg_read_only ? 0400 : 0600, FS_NOCOW_FL, FS_NOCOW_FL, COPY_REFLINK|COPY_CRTIME|COP… in run()
|
/systemd-251/src/machine/ |
D | machine-dbus.c | 909 CopyFlags copy_flags = COPY_REFLINK|COPY_MERGE|COPY_HARDLINKS; in bus_machine_method_copy()
|
/systemd-251/src/partition/ |
D | repart.c | 2863 … COPY_REFLINK|COPY_MERGE|COPY_REPLACE|COPY_SIGINT|COPY_HARDLINKS|COPY_ALL_XATTRS); in do_copy_files() 2869 … COPY_REFLINK|COPY_MERGE|COPY_REPLACE|COPY_SIGINT|COPY_HARDLINKS|COPY_ALL_XATTRS); in do_copy_files() 2900 r = copy_bytes(sfd, tfd, UINT64_MAX, COPY_REFLINK|COPY_SIGINT); in do_copy_files()
|
/systemd-251/src/boot/ |
D | bootctl.c | 734 r = copy_bytes(fd_from, fd_to, UINT64_MAX, COPY_REFLINK); in copy_file_with_version_check()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 279 r = copy_bytes(src, fileno(dst), UINT64_MAX, COPY_REFLINK); in make_backup()
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 1547 COPY_REFLINK | COPY_MERGE_EMPTY | COPY_MAC_CREATE | COPY_HARDLINKS); in copy_files()
|