Displaying 1 result from an estimated 1 matches for "854010e".
Did you mean:
854,10
2010 Feb 12
1
[RFC] add support for fallocate()
...293edc 100644
--- a/rsync.h
+++ b/rsync.h
@@ -1241,3 +1241,7 @@ int inet_pton(int af, const char *src, void *dst);
#ifdef MAINTAINER_MODE
const char *get_panic_action(void);
#endif
+
+#ifdef HAVE_FALLOCATE
+#include <linux/falloc.h>
+#endif
diff --git a/syscall.c b/syscall.c
index aba0009..854010e 100644
--- a/syscall.c
+++ b/syscall.c
@@ -189,6 +189,15 @@ int do_open(const char *pathname, int flags, mode_t mode)
return open(pathname, flags | O_BINARY, mode);
}
+#ifdef HAVE_FALLOCATE
+int do_fallocate(int fd, int mode, OFF_T offset, OFF_T len)
+{
+ RETURN_ERROR_IF(dry_run, 0);
+ RETURN_...