btrfs: fix btrfs_snapshot()

Closes #1956.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Christian Brauner 2017-11-28 13:51:03 +01:00
parent 41dc71558e
commit 1c7222c084
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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);