Home
last modified time | relevance | path

Searched refs:COPY_REFLINK (Results 1 – 21 of 21) sorted by relevance

/systemd-251/src/test/
Dtest-copy.c43 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()
Dtest-fs-util.c818 assert_se(copy_file(p, q, 0, MODE_INVALID, 0, 0, COPY_REFLINK) >= 0); in TEST()
/systemd-251/src/dissect/
Ddissect.c714 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/
Ddata-fd-util.c290 … 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()
Dcopy.h13 COPY_REFLINK = 1 << 0, /* Try to reflink */ enumerator
Ddiscover-image.c837 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()
Dcopy.c182 if ((copy_flags & COPY_REFLINK)) { in copy_bytes_full()
Dbtrfs-util.c1607 COPY_REFLINK| in btrfs_subvol_snapshot_fd_full()
/systemd-251/src/analyze/
Danalyze-verify.c43 r = copy_file(src, dst, 0, 0644, 0, 0, COPY_REFLINK); in process_aliases()
/systemd-251/src/import/
Dpull-tar.c249 … 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()
Dimport-fs.c214 COPY_REFLINK| in import_fs()
Dpull-raw.c332 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/
Dfirstboot.c321 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/
Dsystemctl-edit.c133 r = copy_file(original_path, t, 0, 0644, 0, 0, COPY_REFLINK); in create_edit_temp_file()
/systemd-251/src/portable/
Dportable.c1054 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/
Dnspawn.c2021 … 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/
Dmachine-dbus.c909 CopyFlags copy_flags = COPY_REFLINK|COPY_MERGE|COPY_HARDLINKS; in bus_machine_method_copy()
/systemd-251/src/partition/
Drepart.c2863COPY_REFLINK|COPY_MERGE|COPY_REPLACE|COPY_SIGINT|COPY_HARDLINKS|COPY_ALL_XATTRS); in do_copy_files()
2869COPY_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/
Dbootctl.c734 r = copy_bytes(fd_from, fd_to, UINT64_MAX, COPY_REFLINK); in copy_file_with_version_check()
/systemd-251/src/sysusers/
Dsysusers.c279 r = copy_bytes(src, fileno(dst), UINT64_MAX, COPY_REFLINK); in make_backup()
/systemd-251/src/tmpfiles/
Dtmpfiles.c1547 COPY_REFLINK | COPY_MERGE_EMPTY | COPY_MAC_CREATE | COPY_HARDLINKS); in copy_files()