[lxc-devel] [lxc/master] Update zfs.c

pgauret on Github lxc-bot at linuxcontainers.org
Mon Apr 15 07:19:12 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 463 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190415/8e84939b/attachment-0001.bin>
-------------- next part --------------
From 69df1cfbb96413c7bcecf3315807fa75507d0465 Mon Sep 17 00:00:00 2001
From: pgauret <pgauret at yahoo.com>
Date: Mon, 15 Apr 2019 09:18:42 +0200
Subject: [PATCH] Update zfs.c

Change zfs arguments order to address issue in https://github.com/lxc/lxc/issues/2916
Also works with older zfs versions, tested with zfs 0.7.9-3 on Ubuntu 18.10
---
 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 0a804ad19c..7138846891 100644
--- a/src/lxc/storage/zfs.c
+++ b/src/lxc/storage/zfs.c
@@ -53,7 +53,7 @@ int zfs_detect_exec_wrapper(void *data)
 {
 	struct zfs_args *args = data;
 
-	execlp("zfs", "zfs", "get", "type", "-H", "-o", "name", args->dataset,
+	execlp("zfs", "zfs", "get", "-H", "-o", "name", "type", args->dataset,
 	       (char *)NULL);
 
 	return -1;


More information about the lxc-devel mailing list