From: Christian Brauner Date: Tue, 28 Nov 2017 12:51:03 +0000 (+0100) Subject: btrfs: fix btrfs_snapshot() X-Git-Tag: lxc-3.0.0.beta1~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c7222c084769a1d9406ca7dab943d8a5f016a56;p=thirdparty%2Flxc.git btrfs: fix btrfs_snapshot() Closes #1956. Signed-off-by: Christian Brauner Signed-off-by: Adrian Reber --- diff --git a/src/lxc/storage/btrfs.c b/src/lxc/storage/btrfs.c index 47f199b94..143a0c933 100644 --- a/src/lxc/storage/btrfs.c +++ b/src/lxc/storage/btrfs.c @@ -484,7 +484,7 @@ bool btrfs_create_snapshot(struct lxc_conf *conf, struct lxc_storage *orig, return true; } - ret = btrfs_snapshot(orig->dest, new->dest); + ret = btrfs_snapshot(orig->src, new->dest); if (ret < 0) { SYSERROR("Failed to create btrfs snapshot \"%s\" from \"%s\"", new->dest, orig->dest);