Displaying 2 results from an estimated 2 matches for "aba0009".
Did you mean:
a0009
2010 Feb 12
1
[RFC] add support for fallocate()
...31f4fe..b293edc 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);...
2010 Jun 15
3
about rsyncing of block devices
Hiya,
I can see it's a regular subject on this list.
I, like others wanted to use rsync to synchronise two block
devices (as it happens one lvm volume and one nbd device served
by qemu-img on a remote host from a qcow2 disk image so that I
can keep the old versions)
As I couldn't find any report of it being done successfully,
I'm just sharing my findings as it might benefit others.