The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/3408
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #3287. Signed-off-by: Christian Brauner <[email protected]>
From 09a1adb7fdf35318d49b96f922d098c78631b467 Mon Sep 17 00:00:00 2001 From: Christian Brauner <[email protected]> Date: Tue, 13 Jun 2017 17:03:55 +0200 Subject: [PATCH] rsync: handle sparse files when rsyncing Closes #3287. Signed-off-by: Christian Brauner <[email protected]> --- lxd/rsync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lxd/rsync.go b/lxd/rsync.go index e4ccf90ff..e5f4d3d0c 100644 --- a/lxd/rsync.go +++ b/lxd/rsync.go @@ -34,6 +34,7 @@ func rsyncLocalCopy(source string, dest string, bwlimit string) (string, error) return shared.RunCommand("rsync", "-a", "-HAX", + "--sparse", "--devices", "--delete", "--checksum", @@ -91,6 +92,7 @@ func rsyncSendSetup(name string, path string, bwlimit string) (*exec.Cmd, net.Co "--devices", "--numeric-ids", "--partial", + "--sparse", path, "localhost:/tmp/foo", "-e", @@ -165,6 +167,7 @@ func RsyncRecv(path string, conn *websocket.Conn, writeWrapper func(io.WriteClos "--numeric-ids", "--devices", "--partial", + "--sparse", ".", path)
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
