From 8c59feed5edd5bfde6c79093dcdd7ef91bbc9d7c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 29 Apr 2023 11:51:57 +0900 Subject: [PATCH] missing_fs: also define struct file_clone_range Follow-up for b640e274a7c363a2b6394c9dce5671d9404d2e2a. Addresses https://github.com/systemd/systemd/commit/b640e274a7c363a2b6394c9dce5671d9404d2e2a#r110996661. --- src/basic/missing_fs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/basic/missing_fs.h b/src/basic/missing_fs.h index 6dcea6c56a..411e2cb962 100644 --- a/src/basic/missing_fs.h +++ b/src/basic/missing_fs.h @@ -16,6 +16,12 @@ #ifndef FICLONERANGE /* 04b38d601239b4d9be641b412cf4b7456a041c67 (4.5) */ #define FICLONERANGE _IOW(0x94, 13, struct file_clone_range) +struct file_clone_range { + __s64 src_fd; + __u64 src_offset; + __u64 src_length; + __u64 dest_offset; +}; #endif /* linux/fs.h or sys/mount.h */