mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 11:01:26 +00:00
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:
parent
41dc71558e
commit
1c7222c084
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user