The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3430

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
zfs list blocks forever for longer lists of filesystems (as pclose will wait for termination of zfs list). Therefore just reading the output until end.
From 51d588f42b075ad8a4b38ae871a96c73d639153c Mon Sep 17 00:00:00 2001
From: Der-Jan <d...@r-jan.de>
Date: Fri, 29 May 2020 22:25:13 +0200
Subject: [PATCH] Read list until process exits

---
 src/lxc/storage/zfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lxc/storage/zfs.c b/src/lxc/storage/zfs.c
index ee9e32d0a6..9b8248dd44 100644
--- a/src/lxc/storage/zfs.c
+++ b/src/lxc/storage/zfs.c
@@ -100,7 +100,6 @@ static bool zfs_list_entry(const char *path, char *output, 
size_t inlen)
        while (fgets(output, inlen, f->f)) {
                if (strstr(output, path)) {
                        found = true;
-                       break;
                }
        }
        (void)lxc_pclose(f);
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to