From 1c7222c084769a1d9406ca7dab943d8a5f016a56 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 28 Nov 2017 13:51:03 +0100 Subject: [PATCH] btrfs: fix btrfs_snapshot() Closes #1956. Signed-off-by: Christian Brauner Signed-off-by: Adrian Reber --- src/lxc/storage/btrfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);