[lxc-devel] [lxc/master] Fix 'zfs get' command order

pgauret on Github lxc-bot at linuxcontainers.org
Wed Apr 24 16:29:47 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 445 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190424/af6bef8b/attachment.bin>
-------------- next part --------------
From 69b6aa30563582610d4e82a61cebef145b404954 Mon Sep 17 00:00:00 2001
From: pgauret <pgauret at yahoo.com>
Date: Wed, 24 Apr 2019 18:29:21 +0200
Subject: [PATCH] Fix 'zfs get' command order

Another case of calling 'zfs get' which requires reordering arguments to work with latest zfs.

Signed-off-by: Paul Gauret <pgauret at yahoo.com>
---
 src/lxc/storage/zfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/storage/zfs.c b/src/lxc/storage/zfs.c
index 7138846891..b75708f1c1 100644
--- a/src/lxc/storage/zfs.c
+++ b/src/lxc/storage/zfs.c
@@ -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;


More information about the lxc-devel mailing list