View | Details | Raw Unified | Return to bug 279450 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/py-libzfs/Makefile (+6 lines)
Lines 28-31 MAKE_ENV= freebsd_src=${SRC_BASE} Link Here
28
IGNORE=		requires kernel source files in ${SRC_BASE}
28
IGNORE=		requires kernel source files in ${SRC_BASE}
29
.endif
29
.endif
30
30
31
post-patch:
32
	-cd ${WRKSRC} && \
33
		${GREP} 'zpool_add\(.*ashift\)' /usr/include/libzfs.h && \
34
		${PATCH} -p0 < ${PATCHDIR}/extra-patch-libzfs.pyx && \
35
		${PATCH} -p0 < ${PATCHDIR}/extra-patch-pxd_libzfs.pxd
36
31
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)b/devel/py-libzfs/files/extra-patch-libzfs.pyx (+11 lines)
Added Link Here
1
--- libzfs.pyx.orig	2024-06-18 19:32:59 UTC
2
+++ libzfs.pyx
3
@@ -3101,7 +3101,7 @@ cdef class ZFSPool(object):
4
         cdef int ret
5
 
6
         with nogil:
7
-            ret = libzfs.zpool_add(self.handle, vd.nvlist.handle)
8
+            ret = libzfs.zpool_add(self.handle, vd.nvlist.handle, 0)
9
 
10
         if ret != 0:
11
             raise self.root.get_error()
(-)b/devel/py-libzfs/files/extra-patch-pxd_libzfs.pxd (+11 lines)
Added Link Here
1
--- pxd/libzfs.pxd.orig	2024-06-18 19:33:16 UTC
2
+++ pxd/libzfs.pxd
3
@@ -201,7 +201,7 @@ cdef extern from "libzfs.h" nogil:
4
     extern int zpool_create(libzfs_handle_t *, const char *, nvpair.nvlist_t *,
5
         nvpair.nvlist_t *, nvpair.nvlist_t *)
6
     extern int zpool_destroy(zpool_handle_t *, const char *)
7
-    extern int zpool_add(zpool_handle_t *, nvpair.nvlist_t *)
8
+    extern int zpool_add(zpool_handle_t *, nvpair.nvlist_t *, boolean_t)
9
 
10
     IF HAVE_ZPOOL_SCAN == 3:
11
         extern int zpool_scan(zpool_handle_t *, zfs.pool_scan_func_t, zfs.pool_scrub_cmd_t)

Return to bug 279450