[lxc-devel] [lxc/master] make rsync deal with sparse files efficiently
lpirl on Github
lxc-bot at linuxcontainers.org
Wed Sep 14 15:46:52 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 491 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160914/280433a3/attachment.bin>
-------------- next part --------------
From 4f142fad8b36b3d27093200cd86b4e7c78cb655d Mon Sep 17 00:00:00 2001
From: Lukas Pirl <github at lukas-pirl.de>
Date: Wed, 14 Sep 2016 17:40:16 +0200
Subject: [PATCH] make rsync deal with sparse files efficiently
Signed-off-by: Lukas Pirl <git at lukas-pirl.de>
---
src/lxc/bdev/lxcrsync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/bdev/lxcrsync.c b/src/lxc/bdev/lxcrsync.c
index 17f0b6e..8af3989 100644
--- a/src/lxc/bdev/lxcrsync.c
+++ b/src/lxc/bdev/lxcrsync.c
@@ -61,7 +61,7 @@ int do_rsync(const char *src, const char *dest)
s[l-2] = '/';
s[l-1] = '\0';
- execlp("rsync", "rsync", "-aHX", "--delete", s, dest, (char *)NULL);
+ execlp("rsync", "rsync", "-aHXS", "--delete", s, dest, (char *)NULL);
exit(1);
}
More information about the lxc-devel
mailing list