chiark / gitweb /
copy: use btrfs reflinking only whe we know we copy full files
[elogind.git] / src / shared / copy.h
index 15faf548a1088680053f13a98b05eb882eeb4b94..201fe692ced9dd8c0f392b7421cff56c3b6c46f1 100644 (file)
@@ -24,8 +24,8 @@
 #include <stdbool.h>
 #include <sys/types.h>
 
-int copy_file_fd(const char *from, int to);
+int copy_file_fd(const char *from, int to, bool try_reflink);
 int copy_file(const char *from, const char *to, int flags, mode_t mode);
 int copy_tree(const char *from, const char *to, bool merge);
 int copy_tree_fd(int dirfd, const char *to, bool merge);
-int copy_bytes(int fdf, int fdt, off_t max_bytes);
+int copy_bytes(int fdf, int fdt, off_t max_bytes, bool try_reflink);