Lines Matching refs:fdf
152 int fdf, int fdt, in copy_bytes_full() argument
164 assert(fdf >= 0); in copy_bytes_full()
185 foffset = lseek(fdf, 0, SEEK_CUR); in copy_bytes_full()
193 r = btrfs_reflink(fdf, fdt); /* full file reflink */ in copy_bytes_full()
195 …r = btrfs_clone_range(fdf, foffset, fdt, toffset, max_bytes == UINT64_MAX ? 0 : max_bytes); /* par… in copy_bytes_full()
204 t = lseek(fdf, 0, SEEK_END); in copy_bytes_full()
218 t = lseek(fdf, foffset + max_bytes, SEEK_SET); in copy_bytes_full()
249 c = lseek(fdf, 0, SEEK_CUR); in copy_bytes_full()
254 e = lseek(fdf, c, SEEK_DATA); in copy_bytes_full()
258 e = lseek(fdf, 0, SEEK_END); in copy_bytes_full()
274 e = lseek(fdf, c, SEEK_HOLE); in copy_bytes_full()
282 if (lseek(fdf, c, SEEK_SET) < 0) in copy_bytes_full()
291 n = try_copy_file_range(fdf, NULL, fdt, NULL, m, 0u); in copy_bytes_full()
318 n = sendfile(fdt, fdf, NULL, m); in copy_bytes_full()
354 a = fd_is_nonblock_pipe(fdf); in copy_bytes_full()
381 n = splice(fdf, NULL, fdt, NULL, m, nonblock_pipe ? SPLICE_F_NONBLOCK : 0); in copy_bytes_full()
404 n = read(fdf, buf, sizeof buf); in copy_bytes_full()
692 _cleanup_close_ int fdf = -1, fdt = -1; in fd_copy_regular() local
705 fdf = openat(df, from, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW); in fd_copy_regular()
706 if (fdf < 0) in fd_copy_regular()
720 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress, userdata); in fd_copy_regular()
733 (void) copy_xattr(fdf, fdt, copy_flags); in fd_copy_regular()
874 _cleanup_close_ int fdf = -1, fdt = -1; in fd_copy_directory() local
886 fdf = openat(df, from, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW); in fd_copy_directory()
888 fdf = fcntl(df, F_DUPFD_CLOEXEC, 3); in fd_copy_directory()
889 if (fdf < 0) in fd_copy_directory()
902 d = take_fdopendir(&fdf); in fd_copy_directory()
1038 int fdf, in copy_tree_at_full() argument
1055 if (fstatat(fdf, from, &st, AT_SYMLINK_NOFOLLOW) < 0) in copy_tree_at_full()
1059 …r = fd_copy_regular(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL, progres… in copy_tree_at_full()
1061 …r = fd_copy_directory(fdf, from, &st, fdt, to, st.st_dev, COPY_DEPTH_MAX, override_uid, override_g… in copy_tree_at_full()
1063 … r = fd_copy_symlink(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags); in copy_tree_at_full()
1065 … r = fd_copy_fifo(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL); in copy_tree_at_full()
1067 … r = fd_copy_node(fdf, from, &st, fdt, to, override_uid, override_gid, copy_flags, NULL); in copy_tree_at_full()
1195 _cleanup_close_ int fdf = -1; in copy_file_fd_full() local
1202 fdf = open(from, O_RDONLY|O_CLOEXEC|O_NOCTTY); in copy_file_fd_full()
1203 if (fdf < 0) in copy_file_fd_full()
1206 r = fd_verify_regular(fdf); in copy_file_fd_full()
1213 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress_bytes, userdata); in copy_file_fd_full()
1221 (void) copy_times(fdf, fdt, copy_flags); in copy_file_fd_full()
1222 (void) copy_xattr(fdf, fdt, copy_flags); in copy_file_fd_full()
1248 _cleanup_close_ int fdf = -1, fdt = -1; in copy_file_full() local
1255 fdf = open(from, O_RDONLY|O_CLOEXEC|O_NOCTTY); in copy_file_full()
1256 if (fdf < 0) in copy_file_full()
1259 if (fstat(fdf, &st) < 0) in copy_file_full()
1289 r = copy_bytes_full(fdf, fdt, UINT64_MAX, copy_flags, NULL, NULL, progress_bytes, userdata); in copy_file_full()
1293 (void) copy_times(fdf, fdt, copy_flags); in copy_file_full()
1294 (void) copy_xattr(fdf, fdt, copy_flags); in copy_file_full()
1429 int copy_times(int fdf, int fdt, CopyFlags flags) { in copy_times() argument
1432 assert(fdf >= 0); in copy_times()
1435 if (fstat(fdf, &st) < 0) in copy_times()
1444 if (fd_getcrtime(fdf, &crtime) >= 0) in copy_times()
1451 int copy_access(int fdf, int fdt) { in copy_access() argument
1454 assert(fdf >= 0); in copy_access()
1459 if (fstat(fdf, &st) < 0) in copy_access()
1465 int copy_rights_with_fallback(int fdf, int fdt, const char *patht) { in copy_rights_with_fallback() argument
1468 assert(fdf >= 0); in copy_rights_with_fallback()
1473 if (fstat(fdf, &st) < 0) in copy_rights_with_fallback()
1479 int copy_xattr(int fdf, int fdt, CopyFlags copy_flags) { in copy_xattr() argument
1484 r = flistxattr_malloc(fdf, &names); in copy_xattr()
1494 r = fgetxattr_malloc(fdf, p, &value); in copy_xattr()