]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
btrfs: fix btrfs_snapshot() 1950/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Nov 2017 12:51:03 +0000 (13:51 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 28 Nov 2017 21:44:40 +0000 (22:44 +0100)
Closes #1956.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
src/lxc/storage/btrfs.c

index 47f199b940b3227e947be6e6267d210dba7dc600..143a0c933430c8803f94374332df6885cc9faf6a 100644 (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);