]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_fs: also define struct file_clone_range
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 29 Apr 2023 02:51:57 +0000 (11:51 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 29 Apr 2023 05:03:09 +0000 (07:03 +0200)
Follow-up for b640e274a7c363a2b6394c9dce5671d9404d2e2a.

Addresses https://github.com/systemd/systemd/commit/b640e274a7c363a2b6394c9dce5671d9404d2e2a#r110996661.

src/basic/missing_fs.h

index 6dcea6c56a0ab8bfc8cd37fb34c5dc1d1a0c4b86..411e2cb96252f9298702f32b346c58b4f51ba96b 100644 (file)
 
 #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 */