Skip to content

Commit

Permalink
filesystems/py-libzfs: Fix support for 14.0+
Browse files Browse the repository at this point in the history
The ZFS on 14.0 changed to include skipped bytes in the percentage of
resilver. As old code didn't take into account that variable on 14.0+,
the percentage was always wrong.

Also, take maintainership.

PR:		283522
Reviewed by:	asomers
Approved by:	lwhsu (ports)
Sponsored by:	ConnectWise
  • Loading branch information
mekanix authored and asomers committed Dec 24, 2024
1 parent 957da28 commit fff0adf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion filesystems/py-libzfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PORTNAME= libzfs
PORTVERSION= 1.1.2023020700
PORTREVISION= 1
CATEGORIES= filesystems devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= [email protected]
MAINTAINER= [email protected]
COMMENT= Python libzfs bindings
WWW= https://github.com/freenas/py-libzfs

Expand Down Expand Up @@ -32,4 +33,9 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-zpool-add.patch
IGNORE= requires kernel source files in ${SRC_BASE}
.endif

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff:-p1 # backport of https://github.com/truenas/py-libzfs/pull/251
.endif

.include <bsd.port.mk>
4 changes: 3 additions & 1 deletion filesystems/py-libzfs/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TIMESTAMP = 1675808317
TIMESTAMP = 1734977733
SHA256 (truenas-py-libzfs-1.1.2023020700-c1bd4a0_GH0.tar.gz) = 23b2d6e1b6ed78be2d12068f9b1b0b01270afaaf0f017817a5fb109d358aa818
SIZE (truenas-py-libzfs-1.1.2023020700-c1bd4a0_GH0.tar.gz) = 99656
SHA256 (0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff) = 1fb37c3a678dbaadd47999f7d29631824a404561ca5f2237613d2b22b42fa138
SIZE (0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff) = 1453

0 comments on commit fff0adf

Please sign in to comment.