diff options
-rw-r--r-- | sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch | 12 | ||||
-rw-r--r-- | sys-fs/zfs-utils/zfs-utils-0.8.2-r1.ebuild (renamed from sys-fs/zfs-utils/zfs-utils-0.8.2.ebuild) | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch b/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch new file mode 100644 index 00000000..ad612d26 --- /dev/null +++ b/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch @@ -0,0 +1,12 @@ +diff -Nur a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c +--- a/module/zfs/vdev_disk.c 2019-09-25 21:44:42.626286618 +0100 ++++ b/module/zfs/vdev_disk.c 2020-01-02 10:29:56.356741395 +0000 +@@ -220,7 +220,7 @@ + char *envp[] = { NULL }; + + argv[2] = kmem_asprintf(SET_SCHEDULER_CMD, device, elevator); +- error = call_usermodehelper(argv[0], argv, envp, UMH_NO_WAIT); ++ error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); + strfree(argv[2]); + #endif /* HAVE_ELEVATOR_CHANGE */ + if (error) { diff --git a/sys-fs/zfs-utils/zfs-utils-0.8.2.ebuild b/sys-fs/zfs-utils/zfs-utils-0.8.2-r1.ebuild index 039c344c..35ca27f8 100644 --- a/sys-fs/zfs-utils/zfs-utils-0.8.2.ebuild +++ b/sys-fs/zfs-utils/zfs-utils-0.8.2-r1.ebuild @@ -61,7 +61,8 @@ RESTRICT="test" S="${WORKDIR}/${MY_P}" -PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" ) +PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" + "${FILESDIR}/Use_NMH_WAIT_EXEC_with_call.patch" ) src_prepare() { default |