copy: Merge copy_directory() and copy_directory_fd() into copy_directory_at()
Let's merge these two into a single function that can handle both variants and more.
This commit is contained in:
@@ -1561,8 +1561,9 @@ int btrfs_subvol_snapshot_fd_full(
|
||||
} else if (r < 0)
|
||||
return r;
|
||||
|
||||
r = copy_directory_fd_full(
|
||||
old_fd, new_path,
|
||||
r = copy_directory_at_full(
|
||||
old_fd, NULL,
|
||||
AT_FDCWD, new_path,
|
||||
COPY_MERGE_EMPTY|
|
||||
COPY_REFLINK|
|
||||
COPY_SAME_MOUNT|
|
||||
|
||||
Reference in New Issue
Block a user