]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix 'zfs get' command order 2948/head
authorpgauret <pgauret@yahoo.com>
Wed, 24 Apr 2019 16:29:21 +0000 (18:29 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2019 16:29:21 +0000 (18:29 +0200)
Another case of calling 'zfs get' which requires reordering arguments to work with latest zfs.

Signed-off-by: Paul Gauret <pgauret@yahoo.com>
src/lxc/storage/zfs.c

index 71388468910f6ba93f76dd8dda3d41d55129dfaf..b75708f1c1272e4f74ebc28f883ca6b8b4c978c5 100644 (file)
@@ -101,7 +101,7 @@ int zfs_get_parent_snapshot_exec_wrapper(void *args)
 {
        struct zfs_args *zfs_args = args;
 
-       execlp("zfs", "zfs", "get", "origin", "-o", "value", "-H",
+       execlp("zfs", "zfs", "get", "-H", "-o", "value", "origin",
               zfs_args->dataset, (char *)NULL);
 
        return -1;