btrfs: fix btrfs_snapshot()

Closes #1956. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com> Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
parent 41dc7155
...@@ -484,7 +484,7 @@ bool btrfs_create_snapshot(struct lxc_conf *conf, struct lxc_storage *orig, ...@@ -484,7 +484,7 @@ bool btrfs_create_snapshot(struct lxc_conf *conf, struct lxc_storage *orig,
return true; return true;
} }
ret = btrfs_snapshot(orig->dest, new->dest); ret = btrfs_snapshot(orig->src, new->dest);
if (ret < 0) { if (ret < 0) {
SYSERROR("Failed to create btrfs snapshot \"%s\" from \"%s\"", SYSERROR("Failed to create btrfs snapshot \"%s\" from \"%s\"",
new->dest, orig->dest); new->dest, orig->dest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment