Compare commits
233 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 66ef8d3dc8 | |||
| 0471bf2222 | |||
| 592bf54c1d | |||
| d5320c35ef | |||
| daea70c06f | |||
| d2d19b30ac | |||
| 453933b504 | |||
| 7c44e0fd4f | |||
| 846641b44e | |||
| 7c3580f1e2 | |||
| 406e3116ab | |||
| 4e4e9f07b7 | |||
| c40521f90e | |||
| 815c0cb231 | |||
| c636d46615 | |||
| 9d8f7eac7e | |||
| 3e7179aab5 | |||
| cf62ae92d0 | |||
| 1bc51c3067 | |||
| ba79ebf386 | |||
| a7a04bbd41 | |||
| dcf2989454 | |||
| 88588cfead | |||
| 1995e62236 | |||
| ab835eff0f | |||
| b0c4d8ac0b | |||
| f4e2c4ae29 | |||
| 4584ec1155 | |||
| 5ea8a38968 | |||
| 7a95e010b1 | |||
| f799169849 | |||
| 3efcc79c39 | |||
| 85a3ff856d | |||
| dca6abbf07 | |||
| 5a2ad46755 | |||
| d0e8c24e02 | |||
| 796e3f981f | |||
| b7feed7429 | |||
| dceb3ed09f | |||
| 8e0b77bbc4 | |||
| 0b16d88d9c | |||
| 81fe4f0591 | |||
| b8330d8fb8 | |||
| 186fde725e | |||
| 06c33ddc17 | |||
| 1eee727ce8 | |||
| 1663c08ec4 | |||
| a7bd81d424 | |||
| 68b54bb663 | |||
| 8f586181c6 | |||
| 3f3541cad0 | |||
| 68469c1a83 | |||
| 41ebc8de33 | |||
| b530052969 | |||
| 75a1232bf6 | |||
| fad6240a58 | |||
| 9a75bb8d65 | |||
| d801a0c5f6 | |||
| ca1ed9a9bf | |||
| 531eac3304 | |||
| 64e59c5ce9 | |||
| 8fef14d56e | |||
| 7ea557926a | |||
| 56ef1ea072 | |||
| 79a02bb27f | |||
| eb93ae9166 | |||
| b4d26406ac | |||
| c79374e7fb | |||
| 97dc14914d | |||
| ef1149ab21 | |||
| b577f030c4 | |||
| 0ee31a51f6 | |||
| a8c499606b | |||
| a330c5a73c | |||
| d4c62c11a3 | |||
| e697cc5992 | |||
| 755c71660a | |||
| 4f457a8285 | |||
| 7764433c70 | |||
| be2dd8e629 | |||
| 5881d024a7 | |||
| fb2819a99e | |||
| a06fb96702 | |||
| f17f9da9f3 | |||
| cb19e379cd | |||
| 85fab4fe16 | |||
| 53b89f82e3 | |||
| c12e9c738d | |||
| 8af2630849 | |||
| 1cd71b3b73 | |||
| 33bcc36963 | |||
| d75312dc84 | |||
| 51204ca4f7 | |||
| 4b661efd65 | |||
| 28dd83391b | |||
| 7a7de98bf2 | |||
| 548b12af1d | |||
| 363c009381 | |||
| 6967bf4185 | |||
| c8ca652406 | |||
| 29e1ddcc26 | |||
| 00fad03966 | |||
| 59b6645a48 | |||
| 8228117e8b | |||
| 387483f555 | |||
| 224ca2e1b4 | |||
| 1f122c546d | |||
| b34f3bcce2 | |||
| 4b8605c4d7 | |||
| 9af86c74fe | |||
| 6afcaafa51 | |||
| 5548e2b0b1 | |||
| 8f4d852dcd | |||
| 01e04e2989 | |||
| fd0cc4becd | |||
| cb47b57463 | |||
| 69b48b05c5 | |||
| 3419ff852f | |||
| 1d07acad8a | |||
| 984ac2c31e | |||
| 292758bd89 | |||
| 457cad5f88 | |||
| 374aad5bea | |||
| 4a743804aa | |||
| d754cc6a74 | |||
| eebb1ff15a | |||
| 5d367893ae | |||
| e3da0bd88a | |||
| 38e2c8078f | |||
| 5bce71e23a | |||
| 4736641e76 | |||
| 9be12e4d30 | |||
| 33baf9d7be | |||
| 7bc48bd452 | |||
| 46c5edb571 | |||
| dd9acc98eb | |||
| 4d56f4c5b5 | |||
| 475af1bc20 | |||
| 4472322f60 | |||
| 9fda81f807 | |||
| 943c54360f | |||
| 99c0cd88af | |||
| a18306641a | |||
| 8f11c72175 | |||
| 45fdd1f323 | |||
| 7c8450b4b1 | |||
| 34f271eaf0 | |||
| 97bcaf4bef | |||
| 955a8beadf | |||
| 08743f90d9 | |||
| 33e3621234 | |||
| 69255727d0 | |||
| 457c4458a2 | |||
| 9cad433df9 | |||
| d1002ffe2c | |||
| f43dbfa752 | |||
| ee9e6a91e5 | |||
| a14f5e761c | |||
| 79736c677e | |||
| 7ef1f901d7 | |||
| f3e3232bf4 | |||
| 49538a61c8 | |||
| 63bd3935c7 | |||
| ae14379f41 | |||
| 13d410f1ab | |||
| 886e4c966e | |||
| 9e02600b0c | |||
| da2c3b42fa | |||
| 402acca54f | |||
| 146da5ad07 | |||
| 92886af5c5 | |||
| 512fb2e4a9 | |||
| 5b9cd1ad57 | |||
| 4114f700a9 | |||
| d551e00492 | |||
| 5dccc94923 | |||
| e4f11a69e8 | |||
| d56eab879e | |||
| 58608b5f2e | |||
| 8c9433c855 | |||
| 88b4c00190 | |||
| 696f8e69e2 | |||
| f8d2e88078 | |||
| 5e3e80687e | |||
| d968500bc7 | |||
| 5440c7266a | |||
| 00430d087a | |||
| c3ea9788ad | |||
| d8740a92c1 | |||
| 256c6c0238 | |||
| f7305de3c0 | |||
| fa456d6c4b | |||
| 3d885de40c | |||
| 4a816df53e | |||
| f3f5ce5d7f | |||
| 2a904e377e | |||
| ac43a7be1f | |||
| dee2ef0e31 | |||
| 28f635be8c | |||
| 2e2aafd11c | |||
| 4e389d452b | |||
| 3e9c7d6dff | |||
| 2249b05575 | |||
| 002d5f1b8c | |||
| 65a9766fa0 | |||
| 04a710dd91 | |||
| 2e5067b011 | |||
| 851f368539 | |||
| 1c36de4a98 | |||
| b6c5bd4c51 | |||
| 1bb9f57dcf | |||
| ff03aa2dfd | |||
| f587002c09 | |||
| ad41a6994b | |||
| 0b063f2c20 | |||
| ea3522b2f7 | |||
| aa7ac7c184 | |||
| a010b40938 | |||
| f0371a1b16 | |||
| 933b31ffad | |||
| 76a4c29ab5 | |||
| afa7541760 | |||
| f3341ff73f | |||
| 50ad4ffe78 | |||
| cabb465d41 | |||
| cd09cd8030 | |||
| fccda2b9e6 | |||
| 5a3a6c060f | |||
| 170bd23f1a | |||
| 7abe13017f | |||
| 47ae0e2662 | |||
| 849c46778d | |||
| fd313b306e |
@@ -0,0 +1,7 @@
|
|||||||
|
/*.build
|
||||||
|
/*.buildinfo
|
||||||
|
/*.changes
|
||||||
|
/*.deb
|
||||||
|
/*.dsc
|
||||||
|
/*.tar*
|
||||||
|
/zfs-utils-*.*/
|
||||||
+3
-6
@@ -1,6 +1,3 @@
|
|||||||
[submodule "zfs-debian"]
|
[submodule "zfs/upstream"]
|
||||||
path = zfs-debian
|
path = upstream
|
||||||
url = ../mirror_zfs-debian
|
url = ../mirror_zfs
|
||||||
[submodule "spl-debian"]
|
|
||||||
path = spl-debian
|
|
||||||
url = ../mirror_spl-debian
|
|
||||||
|
|||||||
@@ -1,79 +1,93 @@
|
|||||||
RELEASE=5.1
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
# source form https://github.com/zfsonlinux/
|
# source form https://github.com/zfsonlinux/
|
||||||
|
|
||||||
ZFSVER=0.7.7
|
PACKAGE = zfs-linux
|
||||||
ZFSPKGREL=pve2~bpo9
|
|
||||||
SPLPKGREL=pve1~bpo9
|
|
||||||
ZFSPKGVER=${ZFSVER}-${ZFSPKGREL}
|
|
||||||
SPLPKGVER=${ZFSVER}-${SPLPKGREL}
|
|
||||||
|
|
||||||
SPLDIR=spl-build
|
SRCDIR = upstream
|
||||||
SPLSRC=spl-debian
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
ZFSDIR=zfs-build
|
ORIG_SRC_TAR = $(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
||||||
ZFSSRC=zfs-debian
|
|
||||||
|
|
||||||
SPL_DEBS= \
|
ZFS_DEB1= libnvpair3linux_$(DEB_VERSION)_amd64.deb
|
||||||
spl_${SPLPKGVER}_amd64.deb
|
|
||||||
|
|
||||||
ZFS_DEBS= \
|
ZFS_DEB_BINARY = \
|
||||||
libnvpair1linux_${ZFSPKGVER}_amd64.deb \
|
libpam-zfs_$(DEB_VERSION)_amd64.deb \
|
||||||
libuutil1linux_${ZFSPKGVER}_amd64.deb \
|
libuutil3linux_$(DEB_VERSION)_amd64.deb \
|
||||||
libzfs2linux_${ZFSPKGVER}_amd64.deb \
|
libzfs4linux_$(DEB_VERSION)_amd64.deb \
|
||||||
libzfslinux-dev_${ZFSPKGVER}_amd64.deb \
|
libzfsbootenv1linux_$(DEB_VERSION)_amd64.deb \
|
||||||
libzpool2linux_${ZFSPKGVER}_amd64.deb \
|
libzpool5linux_$(DEB_VERSION)_amd64.deb \
|
||||||
zfs-dbg_${ZFSPKGVER}_amd64.deb \
|
zfs-test_$(DEB_VERSION)_amd64.deb \
|
||||||
zfs-zed_${ZFSPKGVER}_amd64.deb \
|
zfsutils-linux_$(DEB_VERSION)_amd64.deb \
|
||||||
zfs-initramfs_${ZFSPKGVER}_all.deb \
|
zfs-zed_$(DEB_VERSION)_amd64.deb
|
||||||
zfs-test_${ZFSPKGVER}_amd64.deb \
|
|
||||||
zfsutils-linux_${ZFSPKGVER}_amd64.deb
|
|
||||||
|
|
||||||
DEBS=${SPL_DEBS} ${ZFS_DEBS}
|
ZFS_DBG_DEBS = $(patsubst %_$(DEB_VERSION)_amd64.deb, %-dbgsym_$(DEB_VERSION)_amd64.deb, $(ZFS_DEB1) $(ZFS_DEB_BINARY))
|
||||||
|
|
||||||
|
ZFS_DEB2= $(ZFS_DEB_BINARY) \
|
||||||
|
libzfslinux-dev_$(DEB_VERSION)_amd64.deb \
|
||||||
|
python3-pyzfs_$(DEB_VERSION)_amd64.deb \
|
||||||
|
pyzfs-doc_$(DEB_VERSION)_all.deb \
|
||||||
|
spl_$(DEB_VERSION)_all.deb \
|
||||||
|
zfs-initramfs_$(DEB_VERSION)_all.deb
|
||||||
|
DEBS= $(ZFS_DEB1) $(ZFS_DEB2) $(ZFS_DBG_DEBS)
|
||||||
|
|
||||||
|
ZFS_DSC = zfs-linux_$(DEB_VERSION).dsc
|
||||||
|
|
||||||
all: deb
|
all: deb
|
||||||
deb: ${DEBS}
|
|
||||||
|
.PHONY: deb dsc
|
||||||
|
deb: $(DEBS)
|
||||||
|
|
||||||
|
dsc:
|
||||||
|
rm -rf *.dsc $(BUILDDIR)
|
||||||
|
$(MAKE) $(ZFS_DSC)
|
||||||
|
lintian $(ZFS_DSC)
|
||||||
|
|
||||||
|
# called from pve-kernel's Makefile to get patched sources
|
||||||
|
.PHONY: kernel
|
||||||
|
kernel: $(ZFS_DSC)
|
||||||
|
dpkg-source -x $(ZFS_DSC) ../pkg-zfs
|
||||||
|
$(MAKE) -C ../pkg-zfs -f debian/rules adapt_meta_file
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: ${DEBS}
|
dinstall: $(DEBS)
|
||||||
dpkg -i ${DEBS}
|
dpkg -i $(DEBS)
|
||||||
|
|
||||||
.PHONY: submodule
|
.PHONY: submodule
|
||||||
submodule:
|
submodule:
|
||||||
test -f "${ZFSSRC}/debian/changelog" || git submodule update --init
|
test -f "$(SRCDIR)/README.md" || git submodule update --init
|
||||||
test -f "${SPLSRC}/debian/changelog" || git submodule update --init
|
|
||||||
|
|
||||||
.PHONY: spl
|
$(SRCDIR)/README.md: submodule
|
||||||
spl ${SPL_DEBS}: ${SPLSRC}
|
|
||||||
rm -rf ${SPLDIR}
|
|
||||||
mkdir ${SPLDIR}
|
|
||||||
cp -a ${SPLSRC}/* ${SPLDIR}/
|
|
||||||
mv ${SPLDIR}/debian/changelog ${SPLDIR}/debian/changelog.org
|
|
||||||
cat spl-changelog.Debian ${SPLDIR}/debian/changelog.org > ${SPLDIR}/debian/changelog
|
|
||||||
cd ${SPLDIR}; ln -s ../spl-patches patches
|
|
||||||
cd ${SPLDIR}; quilt push -a
|
|
||||||
cd ${SPLDIR}; rm -rf .pc ./patches
|
|
||||||
cd ${SPLDIR}; dpkg-buildpackage -b -uc -us
|
|
||||||
|
|
||||||
.PHONY: zfs
|
.PHONY: zfs
|
||||||
zfs ${ZFS_DEBS} ${ZFS_TRANS_DEBS}: ${ZFSSRC}
|
zfs: $(DEBS)
|
||||||
rm -rf ${ZFSDIR}
|
$(ZFS_DEB2) $(ZFS_DBG_DEBS): $(ZFS_DEB1)
|
||||||
mkdir ${ZFSDIR}
|
$(ZFS_DEB1): $(BUILDDIR)
|
||||||
cp -a ${ZFSSRC}/* ${ZFSDIR}/
|
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
|
||||||
mv ${ZFSDIR}/debian/changelog ${ZFSDIR}/debian/changelog.org
|
lintian $(DEBS)
|
||||||
cat zfs-changelog.Debian ${ZFSDIR}/debian/changelog.org > ${ZFSDIR}/debian/changelog
|
|
||||||
cd ${ZFSDIR}; ln -s ../zfs-patches patches
|
$(ORIG_SRC_TAR): $(BUILDDIR)
|
||||||
cd ${ZFSDIR}; quilt push -a
|
tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
|
||||||
cd ${ZFSDIR}; rm -rf .pc ./patches
|
|
||||||
cd ${ZFSDIR}; dpkg-buildpackage -b -uc -us
|
$(ZFS_DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
|
||||||
|
cd $(BUILDDIR); dpkg-buildpackage -S -uc -us -d
|
||||||
|
|
||||||
|
sbuild: $(ZFS_DSC)
|
||||||
|
sbuild $(ZFS_DSC)
|
||||||
|
|
||||||
|
$(BUILDDIR): $(SRCDIR)/README.md $(SRCDIR) debian
|
||||||
|
rm -rf $@ $@.tmp
|
||||||
|
cp -a $(SRCDIR) $@.tmp
|
||||||
|
cp -a debian $@.tmp/debian
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ *.deb *.changes *.buildinfo ${ZFSDIR} ${SPLDIR}
|
rm -rf $(PACKAGE)-[0-9]*/
|
||||||
|
rm -f *~ *.deb *.changes *.buildinfo *.build *.dsc *.orig.tar.* *.debian.tar.*
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEBS}
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
||||||
tar -cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch --arch amd64
|
upload: $(DEBS)
|
||||||
|
tar -cf - $(DEBS) | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST) --arch $(DEB_HOST_ARCH)
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ Proxmox VE packaging for ZFS on Linux
|
|||||||
|
|
||||||
This is based on code from:
|
This is based on code from:
|
||||||
|
|
||||||
https://github.com/zfsonlinux/pkg-spl.git
|
https://salsa.debian.org/zfsonlinux-team/zfs
|
||||||
https://github.com/zfsonlinux/pkg-zfs.git
|
https://salsa.debian.org/zfsonlinux-team/spl
|
||||||
|
|
||||||
We removed the dkms/modules related code, because we ship the
|
We removed the dkms/modules related code, because we ship the
|
||||||
modules with the kernel.
|
modules with the kernel.
|
||||||
|
|||||||
Vendored
+930
@@ -0,0 +1,930 @@
|
|||||||
|
zfs-linux (2.1.15-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.15
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 29 Mar 2024 15:18:31 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.14-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.14
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 01 Dec 2023 13:47:16 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.13-pve1) bookworm; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.13
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 28 Sep 2023 12:22:28 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.12-pve1) bookworm; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.12
|
||||||
|
|
||||||
|
* zfs trim: avoid exit-failure if last pool isn't nvme-only
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 13 Jun 2023 15:25:16 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.11-pve2) bookworm; urgency=medium
|
||||||
|
|
||||||
|
* re-build for Debian 12 Bookworm based releases
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 20 May 2023 19:32:04 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.11-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.11
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 20 Apr 2023 09:30:53 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.9-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.9
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Jan 2023 15:03:22 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.7-pve3) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* backport a fix for as potentially hanging pipe when resizing it on recv
|
||||||
|
|
||||||
|
* backport a fix for setting extended attributes (xattr)
|
||||||
|
|
||||||
|
* adapt to 6.1 changes for open syscall with TMPFILE option
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 07 Jan 2023 13:21:57 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.7-pve2) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* backport fix for initramfs script when detecting rootfs legacy mountpoints
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 02 Jan 2023 17:07:18 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.7-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.7
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 06 Dec 2022 16:41:31 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.6-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.6
|
||||||
|
|
||||||
|
* symlink zpool_influxdb to /bin
|
||||||
|
|
||||||
|
* symlink zfs, zpool to /bin/ for non-root usage
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 04 Oct 2022 16:09:17 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.5-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.5
|
||||||
|
|
||||||
|
* Build with libcurl for new keylocation=https://
|
||||||
|
|
||||||
|
* d/control: add new zfs-dracut package
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Jun 2022 16:13:24 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.1.4-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 24 Mar 2022 09:28:50 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.3-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 11 Mar 2022 16:36:22 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.2-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.2
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 11 Jan 2022 11:31:34 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.1-pve3) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* zfs-utils: arc stat/summary: guard access to l2arc MFU/MRU stats to avoid
|
||||||
|
bogus exception when checking the ARC stats/summary on a older, 2.0 based
|
||||||
|
ZFS kernel module with the newer, 2.1 based, user space tools.
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 10 Nov 2021 09:58:31 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.1.1-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.1.1
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Sep 2021 06:16:14 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.0.5-pve1) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.0.5
|
||||||
|
|
||||||
|
* do not restart most services upon upgrade
|
||||||
|
|
||||||
|
* add a script and cronjob for regular trimming of pools
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 09 Jul 2021 18:23:58 +0200
|
||||||
|
|
||||||
|
zfs-linux (2.0.4-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.0.4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 18 Mar 2021 13:31:18 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.0.3-pve2) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* match package names to the ones used by Debian
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 25 Feb 2021 13:06:07 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.0.3-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* buildsys: make libpam-zfs a separate package
|
||||||
|
|
||||||
|
* update ZFS to 2.0.3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 15 Feb 2021 15:46:03 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.0.2-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.0.2
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 06 Feb 2021 10:23:03 +0100
|
||||||
|
|
||||||
|
zfs-linux (2.0.1-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 2.0.1
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 13 Jan 2021 14:16:02 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.8.5-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.8.5
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 08 Oct 2020 10:45:28 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.4-pve2) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* add systemd-unit for importing specific pools
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 29 Sep 2020 05:31:35 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.4-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.8.4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 14 May 2020 10:39:11 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.3-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.8.3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 24 Jan 2020 09:10:41 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.8.2-pve2) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* save and restore the FPU state using ZFS dedicated per-cpu FPU state
|
||||||
|
variables.
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 23 Oct 2019 17:14:22 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.2-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update to new 0.8.2 upstream stable release
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Sep 2019 08:34:53 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.1-pve3) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* [SIMD]: FPU register save/restore is also required on 5.0 kernel.
|
||||||
|
strict kernel module release, user space tooling is not touched
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 27 Sep 2019 14:37:32 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.1-pve2) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* cherry-pick parallel mount fix
|
||||||
|
|
||||||
|
* cherry-pick SIMD compat patches
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 20 Aug 2019 17:10:11 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.1-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.8.1
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 14 Jun 2019 20:43:10 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.8.0-pve1) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.8.0
|
||||||
|
|
||||||
|
* SPL is now included in upstream ZFS packaging.
|
||||||
|
Build dummy spl and spl-dkms packages to ease transition on upgrades.
|
||||||
|
|
||||||
|
* Build pyzfs+documentation package
|
||||||
|
|
||||||
|
* Use arc_summary3.py to provide arc_summary.
|
||||||
|
|
||||||
|
* shipped python scripts now use python3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 24 May 2019 12:05:22 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.13-pve2~bpo2) pve pmg; urgency=medium
|
||||||
|
|
||||||
|
* rebuild for PVE 6.0 / Debian Buster
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 21 May 2019 20:08:45 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.13-pve1~bpo2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* remove conflict with insserv (<< 1.18)
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 27 Mar 2019 09:56:15 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.13-pve1~bpo1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.13
|
||||||
|
|
||||||
|
* base zfs-linux on upstream ZOL instead of debian
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 08 Mar 2019 06:53:00 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.12-pve1~bpo1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.12
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 14 Nov 2018 17:51:59 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.11-pve2~bpo1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to debian/0.7.11-3
|
||||||
|
|
||||||
|
* Cherry-pick two fixes planned for 0.7.12
|
||||||
|
|
||||||
|
* Backport deadlock fix between mm_sem and tx assign in zfs_write() and page
|
||||||
|
fault
|
||||||
|
|
||||||
|
* Fix missing Breaks/Replaces in zfs-initramfs
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 29 Oct 2018 13:45:49 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.11-pve1~bpo1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.11
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 10 Sep 2018 15:47:31 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.9-pve3~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Cherry-pick fix for deadlock umount/snapentry_expire
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 03 Aug 2018 11:41:11 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.9-pve2~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Cherry-pick fix for zpl_mount deadlock
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 12 Jul 2018 12:37:50 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.9-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.9
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 18 May 2018 13:49:09 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.8-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.8 (no changes)
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 30 Apr 2018 13:47:22 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.7-pve2~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* (temporarily) revert likely cause of #7401
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 9 Apr 2018 09:49:27 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.7-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.7
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 3 Apr 2018 14:28:35 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.7.6-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.6
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 21 Feb 2018 09:48:29 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.4-pve2~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* cherry-pick ARC hit rate fix from 0.7.6
|
||||||
|
|
||||||
|
* always load ZFS modules on boot
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 19 Jan 2018 11:31:14 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.4-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 19 Dec 2017 12:52:42 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.3-pve1~bpo9) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update ZFS to 0.7.3
|
||||||
|
|
||||||
|
* include fix for user namespace setgid issue (#6800 upstream)
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Nov 2017 09:14:19 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.2-pve1~bpo90) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update zfs to 0.7.2
|
||||||
|
|
||||||
|
* add PR 6616 - zfs send/recv compatibility with 0.6.5
|
||||||
|
|
||||||
|
* add PR 6695 - zfs recv: don't skip over objects which should be freed
|
||||||
|
|
||||||
|
* various small fixes
|
||||||
|
|
||||||
|
* split test suite into zfs-test package
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 12 Oct 2017 13:34:05 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.11-pve18~bpo90) unstable; urgency=medium
|
||||||
|
|
||||||
|
* fix #1509: arc_summary error with L2ARC
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 2 Oct 2017 09:30:41 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.11-pve17~bpo90) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update zfs to debian/0.6.5.11-1
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Jul 2017 13:11:45 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-pve16~bpo90) unstable; urgency=medium
|
||||||
|
|
||||||
|
* drop transitional packages
|
||||||
|
|
||||||
|
* convert python scripts to python 3, drop .py suffix
|
||||||
|
|
||||||
|
* rebuild for PVE 5.0 / Debian Stretch
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Mar 2017 09:45:52 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-pve15~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update zfs to debian/0.6.5.9-1
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Feb 2017 12:39:10 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-pve14~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update zfs to debian/0.6.5.8-3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 11 Jan 2017 09:34:58 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-pve13~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* fix #1184: zfs-share.service has wrong path to 'rm' command
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Oct 2016 11:25:47 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-pve12~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* import with "-d /dev/disk/by-id" in systemd service
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 24 Oct 2016 13:48:08 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-pve11~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update zfs to debian/0.6.5.8-1
|
||||||
|
|
||||||
|
* switch package upstream sources to Debian (Jessie)
|
||||||
|
|
||||||
|
* add transitional packages for upgrades
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 12 Oct 2016 11:16:02 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.7-pve10~bpo80) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to pkg-zfs jessie/0.6.5.7-8
|
||||||
|
|
||||||
|
* change package versioning to allow upgrades from PVE3/wheezy
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Jun 2016 09:50:00 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve9~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Update to pkg-zfs jessie/0.6.5.6-3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 12 Apr 2016 09:51:35 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve8~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to zfs-0.6.5.6
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 30 Mar 2016 10:50:22 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve7~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to zfs-0.6.5.4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 14 Jan 2016 10:51:17 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve6~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Prepare to tag zfs-0.6.5.3
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 05 Nov 2015 07:21:44 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve5~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Illumos 6267 - dn_bonus evicted too early
|
||||||
|
|
||||||
|
* Fix use-after-free in vdev_disk_physio_completion
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 04 Nov 2015 17:42:42 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve4~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to master/debian/jessie/0.6.5.2-2
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 05 Oct 2015 17:56:45 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve3~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* do not install /etc/init.d/zfs-zed script to avoid double startup
|
||||||
|
with systemd
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 28 Sep 2015 10:14:40 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve2~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to master/debian/jessie/0.6.5.1-4
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 24 Sep 2015 12:45:33 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5-pve1~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to master/debian/jessie/0.6.5.1-2
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 21 Sep 2015 10:02:41 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.4-pve3~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to snapshot/debian/jessie/0.6.4-24-6bec43
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Mon, 24 Aug 2015 06:13:44 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.4-pve2~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to 0.6.4.2 (snapshot/debian/jessie/0.6.4-21-53b1d9)
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 21 Jul 2015 11:03:21 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.4-pve1~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* update to 0.6.4 (use upstream zol package definitions)
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 14 Apr 2015 10:19:22 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.3-pve3~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* ignore zfs-import-scan errors
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 31 Mar 2015 17:52:40 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.3-pve2~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* use systemd for service startup
|
||||||
|
|
||||||
|
* install zed configuration file /etc/zfs/zed.d/zed.rc
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sun, 15 Mar 2015 15:52:54 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.3-pve1~jessie) unstable; urgency=medium
|
||||||
|
|
||||||
|
* recompile on jessie
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Feb 2015 16:02:08 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.3-2~wheezy) unstable; urgency=low
|
||||||
|
|
||||||
|
* use /sbin/modprobe to avoid warning inside initrd
|
||||||
|
|
||||||
|
* fix warning about undefined values inside initrd
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 14 Jan 2015 19:03:04 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.3-1~wheezy) unstable; urgency=low
|
||||||
|
|
||||||
|
* first version for Proxmox VE
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 10 Jan 2015 14:06:34 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.7.12-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Colin Ian King ]
|
||||||
|
* Only run autopkgtests for amd64, arm64, ppc64el and s390x (LP#1805627).
|
||||||
|
|
||||||
|
[ Martin Bagge / brother ]
|
||||||
|
* [INTL:sv] Swedish strings for zfs-linux debconf (Closes: #918020)
|
||||||
|
|
||||||
|
[ Anders Jonsson ]
|
||||||
|
* sv.po: typo fix
|
||||||
|
|
||||||
|
[ Mo Zhou ]
|
||||||
|
* Change init script's behaviour to default during postinst.
|
||||||
|
* Add ${perl:Depends} to zfs-dkms's Depends.
|
||||||
|
* Add autopkgtest script to test zfs-dkms build.
|
||||||
|
* autopkgtest: minor fix
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Add XS-Autobuild: yes to d/control
|
||||||
|
* Conflicts with insserv << 1.18 (Closes: #915831)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Fri, 11 Jan 2019 21:32:06 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.12-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Stoiko Ivanov ]
|
||||||
|
* Add Breaks/Replaces to zfs-initramfs
|
||||||
|
|
||||||
|
[ Mo Zhou ]
|
||||||
|
* New upstream version 0.7.12
|
||||||
|
* Drop unnecessary patch init-start-stop-dep-on-local-fs.patch .
|
||||||
|
* Override init.d-script-missing-dependency-on-local_fs for zfs-zed.
|
||||||
|
* Bump linux compatibility to 4.19 .
|
||||||
|
|
||||||
|
-- Mo Zhou <cdluminate@gmail.com> Mon, 19 Nov 2018 11:32:44 +0000
|
||||||
|
|
||||||
|
zfs-linux (0.7.11-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
+ https://salsa.debian.org/zfsonlinux-team/zfs/merge_requests/9
|
||||||
|
* Break/Replace upstream .deb packages (Closes: #839921)
|
||||||
|
* Install upstream bash completion file instead of embedded one.
|
||||||
|
* Modify META before autoreconf.
|
||||||
|
* Make dkms distdir before build to avoid including build artifacts.
|
||||||
|
* Remove ZFS_AC_PACKAGE macros from DKMS sources.
|
||||||
|
This removes dpkg-dev dependency from zfs-dkms package.
|
||||||
|
* Use upstream's dkms.mkconf script to produce dkms.conf .
|
||||||
|
* Ship initramfs zdev hook in zfs-initramfs (Closes: #902052)
|
||||||
|
|
||||||
|
[ Nicolas Braud-Santoni ]
|
||||||
|
* Update debian/copyright, removing unused wildcards.
|
||||||
|
|
||||||
|
[ Nicholas D Steeves ]
|
||||||
|
* Change -dbg package's priority from extra to optional.
|
||||||
|
|
||||||
|
[ Mo Zhou ]
|
||||||
|
* Fix FTBFS on architecture=all due to FileNotFound. (Closes: #911937)
|
||||||
|
* Add isolation-machine restriction to autopkgtest because the tests
|
||||||
|
needs to interact with the kernel, i.e. loading kernel module.
|
||||||
|
|
||||||
|
-- Mo Zhou <cdluminate@gmail.com> Sun, 28 Oct 2018 10:28:52 +0000
|
||||||
|
|
||||||
|
zfs-linux (0.7.11-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Support Devuan in dkms script. (Closes: #900089)
|
||||||
|
Thanks to Chris Dos <chris@chrisdos.com>
|
||||||
|
* Install init scripts to support non-systemd setups. (Closes: #826994)
|
||||||
|
Thanks to Chris Dos <chris@chrisdos.com>
|
||||||
|
* Override init.d-script-does-not-source-init-functions for
|
||||||
|
zfsutils-linux and zfs-zed.
|
||||||
|
* Patch upstream init scripts to make them work for Debian+OpenRC setup.
|
||||||
|
* Patch upstream init script to fix missing dependency on local_fs.
|
||||||
|
|
||||||
|
-- Mo Zhou <cdluminate@gmail.com> Fri, 26 Oct 2018 09:32:06 +0000
|
||||||
|
|
||||||
|
zfs-linux (0.7.11-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Add dpkg-dev to Depends of zfs-dkms (Closes: #900714)
|
||||||
|
|
||||||
|
[ Nicolas Braud-Santoni ]
|
||||||
|
* Use canonical HTTPS format URL for Vcs-Git (Closes: #895873)
|
||||||
|
|
||||||
|
[ Mo Zhou ]
|
||||||
|
* New upstream version 0.7.11 (Closes: #908290)
|
||||||
|
* Bump linux_compat to 4.18 .
|
||||||
|
* Replace get_next.sh with one-liner awk script in rules.
|
||||||
|
* Append myself to Uploaders and refresh auto-generated control.
|
||||||
|
* Use HTTPS format URI in watch file.
|
||||||
|
* Recommends linux-libc-dev (<< LINUX_NEXT~) instead of (<< LINUX_NEXT).
|
||||||
|
|
||||||
|
-- Mo Zhou <cdluminate@gmail.com> Wed, 19 Sep 2018 08:45:18 +0000
|
||||||
|
|
||||||
|
zfs-linux (0.7.9-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* Expand zfs-test and add Breaks/Conflicts (Closes: #899047)
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* d/control: migrate to alioth-lists (Closes: #899756)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Mon, 28 May 2018 18:22:02 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.9-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Move more zfs test tools to zfs-test package (Closes: #868653)
|
||||||
|
* New upstream version 0.7.9
|
||||||
|
* d/rules: add --enable-systemd
|
||||||
|
* Fix lintian obsolete-relation-form-in-source
|
||||||
|
* Bump supported linux version to 4.16
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* Install enum-extract.pl with dkms
|
||||||
|
* Handle /proc/kallsym obfuscation (Closes: #891936)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Thu, 17 May 2018 23:47:29 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.6-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Lev Lamberov ]
|
||||||
|
* [INTL:ru] Updated Russian translation of debconf (Closes: #885990)
|
||||||
|
|
||||||
|
[ Aron Xu]
|
||||||
|
* New upstream release (Closes: #889795, #890576)
|
||||||
|
* 0001-Fix-bug-in-distclean-which-removes-needed-files.patch:
|
||||||
|
removed, applied upstream
|
||||||
|
* Update VCS-* URL to salsa.debian.org
|
||||||
|
* Apply wrap-and-sort
|
||||||
|
* Recommends: linux-libc-dev (< ${LINUX_NEXT}):
|
||||||
|
Tries to prevent unexpected upgrades of kernel that is not known to
|
||||||
|
be supported by the packaged version of ZFS/SPL. (Closes: #849420)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Mon, 26 Feb 2018 16:32:29 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* New upstream version 0.7.5 (Closes: #884812)
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* Add version dependency on zfsutils-linux package (Closes: #880889)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Fri, 19 Jan 2018 15:39:23 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version 0.7.4 (Closes: #884287, #883832)
|
||||||
|
* Require debhelper >= 10.2
|
||||||
|
* cherry-pick: fix distclean which removes needed files (Closes: #884706)
|
||||||
|
* Refresh patches
|
||||||
|
* Update stdver to 4.1.2, no change required
|
||||||
|
* Install zfs-import.target
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Mon, 18 Dec 2017 22:48:59 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.3-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* Add maximum version dependency on spl-dkms (Closes: #883008)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Thu, 30 Nov 2017 00:34:30 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.3-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Fabian Grünbichler ]
|
||||||
|
* d/rules: remove obsolete calls to dpkg-architecture (Closes: #882209)
|
||||||
|
* zfs-test: add proper Breaks+Replaces (Closes: #880902)
|
||||||
|
* build: add implicit version to dh_makeshlibs (Closes: #880709)
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Depend on matching version of spl-dkms (Closes: ##881013)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 28 Nov 2017 16:16:34 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.7.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* Refresh manual builds DKMS prevention patch
|
||||||
|
|
||||||
|
[ Fabian Grünbichler ]
|
||||||
|
* zfs-test package
|
||||||
|
* add files to debian/not-installed
|
||||||
|
* dh_install: switch to --fail-missing
|
||||||
|
* add new files from 0.7 to install
|
||||||
|
* dkms: build icp module as well
|
||||||
|
|
||||||
|
[ Antonio Russo ]
|
||||||
|
* dracut: make module-setup.sh shebang explicit
|
||||||
|
* add man page reference to systemd units
|
||||||
|
* Fix install path of zpool.d scripts
|
||||||
|
* Incorporate DebianPT.org Portuguese translation
|
||||||
|
* Fix typo in debconf templates
|
||||||
|
* Drop dependency on dh-systemd
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Drop merged patches, update remainders
|
||||||
|
* Update std-ver to 4.1.1
|
||||||
|
* New upstream version 0.7.3
|
||||||
|
* Update debconf pot file
|
||||||
|
* Update control.in for dh-systemd deprecation
|
||||||
|
* Add lintian override for zfs-test
|
||||||
|
|
||||||
|
[ Colin King ]
|
||||||
|
* Improve cloning performance for large numbers of clones (LP: #1567557)
|
||||||
|
Bump zcmd buffer from 16K to 256K.
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 31 Oct 2017 18:52:01 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.11-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Imported Upstream version 0.6.5.11
|
||||||
|
|
||||||
|
[ Fabian Grünbichler ]
|
||||||
|
* fix rm path in zfs-share.service
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Fri, 14 Jul 2017 16:33:23 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.10-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Add kernel version to depmod cmd (Closes: #860958)
|
||||||
|
* New upstream version 0.6.5.10
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Wed, 05 Jul 2017 18:11:39 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-5) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Add zfs initramfs conf for root pool setup
|
||||||
|
(Closes: #848157, LP: #1673197)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Sun, 19 Mar 2017 18:14:57 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-4) unstable; urgency=medium
|
||||||
|
|
||||||
|
* autopkgtest: load zfs module before running tests
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 14 Mar 2017 11:38:08 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Petter Reinholdtsen ]
|
||||||
|
* Updated German debconf translation by Helge Kreutzmann. (Closes: #857528)
|
||||||
|
* Updated metadata on a few patches.
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Cherry-pick upstream fix for merged /usr/lib and /lib
|
||||||
|
* Manually maintain adt test Depends
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Mon, 13 Mar 2017 12:23:32 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Fabian Grünbichler ]
|
||||||
|
* fix zed-service-bindir patch
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 07 Feb 2017 17:22:02 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.9-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Imported Upstream version 0.6.5.9 (Closes: #851513)
|
||||||
|
|
||||||
|
[ Lukas Wunner ]
|
||||||
|
* Cherry picks for root zpool with dracut (Closes: #849969)
|
||||||
|
* Fix installation path of systemd files
|
||||||
|
* Fix build breakage caused by nonstandard umask
|
||||||
|
|
||||||
|
[ Fabian Grünbichler ]
|
||||||
|
* fix python script install path (Closes: #842237)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Mon, 06 Feb 2017 15:57:50 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Fix the path on the zfs-zed unit file (Closes: #849813)
|
||||||
|
|
||||||
|
-- Carlos Alberto Lopez Perez <clopez@igalia.com> Thu, 05 Jan 2017 16:23:16 +0100
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Richard Laager ]
|
||||||
|
* Remove .py extension from utilities in /usr/sbin as per policy
|
||||||
|
10.4 Scripts (LP: #1628279)
|
||||||
|
|
||||||
|
[ Colin Ian King ]
|
||||||
|
* Use python3 for arcstat.py, arc_summary.py & dbufstat.py (LP: #1627909)
|
||||||
|
|
||||||
|
[ Richard Laager ]
|
||||||
|
* Set PATH in cron.d job to fix monthly scrubs. (LP: #1548009)
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Install zed into /usr/sbin
|
||||||
|
* Rename zfsutils path to follow the package name
|
||||||
|
* Add missing part in python3 move
|
||||||
|
* Install zed to /usr/sbin
|
||||||
|
|
||||||
|
[ Petter Reinholdtsen ]
|
||||||
|
* Updated Italian debconf translation by Beatrice Torracca.
|
||||||
|
(Closes: #846928)
|
||||||
|
* Added patch 1003-linux-4.9-compat.patch from upstream to build with
|
||||||
|
Linux kernel 4.9. (Closes: #847018)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Sat, 17 Dec 2016 17:42:21 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.8-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Carlos Alberto Lopez Perez ]
|
||||||
|
* Reflow changelog from last upload to avoid lintian warning.
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Imported Upstream version 0.6.5.8 (Closes: #838192)
|
||||||
|
* Conflicts with zutils (Closes: #836853)
|
||||||
|
|
||||||
|
[ Zhou Mo ]
|
||||||
|
* Patch: remove merged patches.
|
||||||
|
* Upstream renamed zed.service to zfs-zed.service .
|
||||||
|
* Avoid installing zfs-zed.service twice.
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 20 Sep 2016 15:20:21 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.7-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Add busybox to zfs-initramfs list of dependencies. (Closes: #824976)
|
||||||
|
|
||||||
|
[ Petter Reinholdtsen ]
|
||||||
|
* Updated Danish debconf translation by Joe Hansen. (Closes: #830652)
|
||||||
|
* Added Dutch (nl) debconf translation by Frans Spiesschaert.
|
||||||
|
(Closes: #832280)
|
||||||
|
* Norwegian Bokmål (nb) debconf template translation by Petter Reinholdtsen.
|
||||||
|
|
||||||
|
[ Eric Desrochers ]
|
||||||
|
* Change utilities path (bindir) to /usr/sbin. (Closes: #832938)
|
||||||
|
|
||||||
|
[ Carlos Alberto Lopez Perez]
|
||||||
|
* Add tunable to ignore hole_birth, and enable it by default.
|
||||||
|
(Closes: #830824)
|
||||||
|
|
||||||
|
-- Carlos Alberto Lopez Perez <clopez@igalia.com> Tue, 16 Aug 2016 17:43:48 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.7-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ YunQiang Su ]
|
||||||
|
* 1002-fix-mips-build.patch: fix builds on mips* archs
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* New upstream release.
|
||||||
|
* 1001-Fix-aarch64-compilation.patch: dropped, not needed anymore
|
||||||
|
* Merge patches from Ubuntu:
|
||||||
|
- 0002-Check-for-META-and-DCH-consistency-in-autoconf.patch
|
||||||
|
- 0003-Add-libuutil-to-LIBADD-for-libzfs-and-libzfs_core.patch
|
||||||
|
- enable-zed.patch
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Tue, 31 May 2016 14:10:49 +0800
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.6-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* Adding smoke testing scripts from Ubuntu
|
||||||
|
* Fix binary module builds
|
||||||
|
* Add libblkid-dev, libattr1-dev to build-dep
|
||||||
|
* Re-sync source tree
|
||||||
|
* Add dh-python to b-d
|
||||||
|
* Remove .gitignore files and clean build tree
|
||||||
|
* Scrub all healthy pools monthly from Richard Laager
|
||||||
|
|
||||||
|
[ Petter Reinholdtsen ]
|
||||||
|
* Copied 1000-ppc64el-endian-support.patch from Ubuntu to fix endian
|
||||||
|
build problem on ppc64el
|
||||||
|
* Copied 1001-Fix-aarch64-compilation.patch from Ubuntu to fix build
|
||||||
|
problem on arm64.
|
||||||
|
* Copied 0001-Prevent-manual-builds-in-the-DKMS-source.patch from
|
||||||
|
Ubuntu to block manual building in the DKMS source tree.
|
||||||
|
* Updated Standards-Version from 3.9.7 to 3.9.8.
|
||||||
|
* Bring some files back to the upstream tarball content to get gbp
|
||||||
|
buildpackage working.
|
||||||
|
|
||||||
|
-- Petter Reinholdtsen <pere@debian.org> Thu, 12 May 2016 12:19:55 +0200
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.6-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Aron Xu ]
|
||||||
|
* New upstream version 0.6.5.6.
|
||||||
|
|
||||||
|
[ Petter Reinholdtsen ]
|
||||||
|
* Generated new copyright.cme file based on version 0.6.5.6.
|
||||||
|
* Updated d/copyright file, add missing BSD licensed init.d scripts, and
|
||||||
|
new copyright holders in the new upstream version.
|
||||||
|
* Updated Standards-Version from 3.9.6 to 3.9.7.
|
||||||
|
* Added myself as uploader.
|
||||||
|
* Updated debconf po files based on newest pot file.
|
||||||
|
* Correct URL to git repo in d/control.
|
||||||
|
|
||||||
|
-- Petter Reinholdtsen <pere@debian.org> Sat, 26 Mar 2016 07:08:11 +0000
|
||||||
|
|
||||||
|
zfs-linux (0.6.5.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial Release (Closes: #686447)
|
||||||
|
|
||||||
|
-- Aron Xu <aron@debian.org> Sun, 20 Mar 2016 22:57:06 +0800
|
||||||
Vendored
+301
@@ -0,0 +1,301 @@
|
|||||||
|
Source: zfs-linux
|
||||||
|
Section: contrib/kernel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
|
Build-Depends: abigail-tools,
|
||||||
|
debhelper-compat (= 12),
|
||||||
|
dh-python,
|
||||||
|
libaio-dev,
|
||||||
|
libblkid-dev,
|
||||||
|
libcurl4-openssl-dev | libcurl4-gnutls-dev,
|
||||||
|
libelf-dev,
|
||||||
|
libpam0g-dev,
|
||||||
|
libssl-dev | libssl1.0-dev,
|
||||||
|
libtool,
|
||||||
|
libudev-dev,
|
||||||
|
lsb-release,
|
||||||
|
python3-cffi,
|
||||||
|
python3-setuptools,
|
||||||
|
python3-sphinx,
|
||||||
|
python3-all-dev,
|
||||||
|
uuid-dev,
|
||||||
|
zlib1g-dev
|
||||||
|
Standards-Version: 4.5.1
|
||||||
|
Homepage: https://www.zfsonlinux.org/
|
||||||
|
Vcs-Git: https://git.proxmox.com/git/zfsonlinux.git
|
||||||
|
Vcs-Browser: https://git.proxmox.com/?p=zfsonlinux.git;a=summary
|
||||||
|
|
||||||
|
Package: libnvpair3linux
|
||||||
|
Section: contrib/libs
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Breaks: libnvpair1, libnvpair1linux, libnvpair2linux, libnvpair3
|
||||||
|
Replaces: libnvpair1, libnvpair1linux, libnvpair2linux, libnvpair3
|
||||||
|
Description: Solaris name-value library for Linux
|
||||||
|
This library provides routines for packing and unpacking nv pairs for
|
||||||
|
transporting data across process boundaries, transporting between
|
||||||
|
kernel and userland, and possibly saving onto disk files.
|
||||||
|
|
||||||
|
Package: libpam-zfs
|
||||||
|
Section: contrib/admin
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: libpam-runtime, ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Description: PAM module for managing encryption keys for ZFS
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This provides a Pluggable Authentication Module (PAM) that automatically
|
||||||
|
unlocks encrypted ZFS datasets upon login.
|
||||||
|
|
||||||
|
Package: libuutil3linux
|
||||||
|
Section: contrib/libs
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Breaks: libuutil1, libuutil1linux, libuutil2linux, libuutil3
|
||||||
|
Replaces: libuutil1, libuutil1linux, libuutil2linux, libuutil3
|
||||||
|
Description: Solaris userland utility library for Linux
|
||||||
|
This library provides a variety of glue functions for ZFS on Linux:
|
||||||
|
* libspl: The Solaris Porting Layer userland library, which provides APIs
|
||||||
|
that make it possible to run Solaris user code in a Linux environment
|
||||||
|
with relatively minimal modification.
|
||||||
|
* libavl: The Adelson-Velskii Landis balanced binary tree manipulation
|
||||||
|
library.
|
||||||
|
* libefi: The Extensible Firmware Interface library for GUID disk
|
||||||
|
partitioning.
|
||||||
|
* libshare: NFS, SMB, and iSCSI service integration for ZFS.
|
||||||
|
|
||||||
|
Package: libzfslinux-dev
|
||||||
|
Section: contrib/libdevel
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: libssl-dev | libssl1.0-dev,
|
||||||
|
libnvpair3linux (= ${binary:Version}),
|
||||||
|
libuutil3linux (= ${binary:Version}),
|
||||||
|
libzfs4linux (= ${binary:Version}),
|
||||||
|
libzfsbootenv1linux (= ${binary:Version}),
|
||||||
|
libzpool5linux (= ${binary:Version}),
|
||||||
|
${misc:Depends}
|
||||||
|
Provides: libnvpair-dev, libuutil-dev
|
||||||
|
Description: OpenZFS filesystem development files for Linux
|
||||||
|
Header files and static libraries for compiling software against
|
||||||
|
libraries of OpenZFS filesystem.
|
||||||
|
.
|
||||||
|
This package includes the development files of libnvpair3, libuutil3,
|
||||||
|
libzpool5 and libzfs4, libzfsbootenv1.
|
||||||
|
|
||||||
|
Package: libzfs4linux
|
||||||
|
Section: contrib/libs
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
# The libcurl4 is loaded through dlopen("libcurl.so.4").
|
||||||
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988521
|
||||||
|
Recommends: libcurl4
|
||||||
|
Breaks: libzfs2, libzfs2linux, libzfs3linux, libzfs4
|
||||||
|
Replaces: libzfs2, libzfs2linux, libzfs3linux, libzfs4
|
||||||
|
Description: OpenZFS filesystem library for Linux - general support
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
The OpenZFS library provides support for managing OpenZFS filesystems.
|
||||||
|
|
||||||
|
Package: libzfsbootenv1linux
|
||||||
|
Section: contrib/libs
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Breaks: libzfs2, libzfs4
|
||||||
|
Replaces: libzfs2, libzfs4
|
||||||
|
Description: OpenZFS filesystem library for Linux
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
The zfsbootenv library provides support for modifying ZFS label information.
|
||||||
|
|
||||||
|
Package: libzpool5linux
|
||||||
|
Section: contrib/libs
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Breaks: libzpool2, libzpool2linux, libzpool3linux, libzpool4
|
||||||
|
Replaces: libzpool2, libzpool2linux, libzpool3linux, libzpool4
|
||||||
|
Description: OpenZFS pool library for Linux
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This zpool library provides support for managing zpools.
|
||||||
|
|
||||||
|
Package: python3-pyzfs
|
||||||
|
Section: contrib/python
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
python3-cffi,
|
||||||
|
zfsutils-linux (= ${binary:Version})
|
||||||
|
Description: wrapper for libzfs_core C library
|
||||||
|
libzfs_core is intended to be a stable interface for programmatic
|
||||||
|
administration of ZFS. This wrapper provides one-to-one wrappers for
|
||||||
|
libzfs_core API functions, but the signatures and types are more natural to
|
||||||
|
Python.
|
||||||
|
.
|
||||||
|
nvlists are wrapped as dictionaries or lists depending on their usage.
|
||||||
|
Some parameters have default values depending on typical use for
|
||||||
|
increased convenience. Enumerations and bit flags become strings and lists
|
||||||
|
of strings in Python. Errors are reported as exceptions rather than integer
|
||||||
|
errno-style error codes. The wrapper takes care to provide one-to-many
|
||||||
|
mapping of the error codes to the exceptions by interpreting a context
|
||||||
|
in which the error code is produced.
|
||||||
|
|
||||||
|
Package: pyzfs-doc
|
||||||
|
Section: contrib/doc
|
||||||
|
Architecture: all
|
||||||
|
Depends:
|
||||||
|
${sphinxdoc:Depends},
|
||||||
|
${misc:Depends}
|
||||||
|
Recommends:
|
||||||
|
python3-pyzfs
|
||||||
|
Description: wrapper for libzfs_core C library (documentation)
|
||||||
|
libzfs_core is intended to be a stable interface for programmatic
|
||||||
|
administration of ZFS. This wrapper provides one-to-one wrappers for
|
||||||
|
libzfs_core API functions, but the signatures and types are more natural to
|
||||||
|
Python.
|
||||||
|
.
|
||||||
|
nvlists are wrapped as dictionaries or lists depending on their usage.
|
||||||
|
Some parameters have default values depending on typical use for
|
||||||
|
increased convenience. Enumerations and bit flags become strings and lists
|
||||||
|
of strings in Python. Errors are reported as exceptions rather than integer
|
||||||
|
errno-style error codes. The wrapper takes care to provide one-to-many
|
||||||
|
mapping of the error codes to the exceptions by interpreting a context
|
||||||
|
in which the error code is produced.
|
||||||
|
.
|
||||||
|
This package contains the documentation.
|
||||||
|
|
||||||
|
Package: zfs-initramfs
|
||||||
|
Architecture: all
|
||||||
|
Depends: busybox-initramfs | busybox-static | busybox,
|
||||||
|
initramfs-tools,
|
||||||
|
zfsutils-linux (>= ${binary:Version}),
|
||||||
|
${misc:Depends}
|
||||||
|
Breaks: zfsutils-linux (<= 0.7.11-pve1~bpo1)
|
||||||
|
Replaces: zfsutils-linux (<= 0.7.11-pve1~bpo1)
|
||||||
|
Description: OpenZFS root filesystem capabilities for Linux - initramfs
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This package adds OpenZFS to the system initramfs with a hook
|
||||||
|
for the initramfs-tools infrastructure.
|
||||||
|
|
||||||
|
Package: zfs-dracut
|
||||||
|
Architecture: all
|
||||||
|
Depends: dracut,
|
||||||
|
zfsutils-linux (>= ${source:Version}),
|
||||||
|
${misc:Depends}
|
||||||
|
Description: OpenZFS root filesystem capabilities for Linux - dracut
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This package adds OpenZFS to the system initramfs with a hook
|
||||||
|
for the dracut infrastructure.
|
||||||
|
|
||||||
|
Package: zfsutils-linux
|
||||||
|
Section: contrib/admin
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: python3, ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
|
||||||
|
Recommends: zfs-zed
|
||||||
|
Suggests: nfs-kernel-server,
|
||||||
|
samba-common-bin (>= 3.0.23),
|
||||||
|
zfs-initramfs
|
||||||
|
Conflicts: zfs, zfs-fuse
|
||||||
|
Provides: zfsutils
|
||||||
|
Description: command-line tools to manage OpenZFS filesystems
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This package provides the zfs and zpool commands to create and administer
|
||||||
|
OpenZFS filesystems.
|
||||||
|
|
||||||
|
Package: zfs-zed
|
||||||
|
Section: contrib/admin
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: zfsutils-linux (>= ${binary:Version}),
|
||||||
|
${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
|
Recommends: bsd-mailx | mailutils
|
||||||
|
Description: OpenZFS Event Daemon
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
ZED (ZFS Event Daemon) monitors events generated by the ZFS kernel
|
||||||
|
module. When a zevent (ZFS Event) is posted, ZED will run any ZEDLETs
|
||||||
|
(ZFS Event Daemon Linkage for Executable Tasks) that have been enabled
|
||||||
|
for the corresponding zevent class.
|
||||||
|
.
|
||||||
|
This package provides the OpenZFS Event Daemon (zed).
|
||||||
|
|
||||||
|
Package: zfs-test
|
||||||
|
Section: contrib/admin
|
||||||
|
Architecture: linux-any
|
||||||
|
Depends: acl,
|
||||||
|
attr,
|
||||||
|
bc,
|
||||||
|
fio,
|
||||||
|
ksh,
|
||||||
|
lsscsi,
|
||||||
|
mdadm,
|
||||||
|
parted,
|
||||||
|
python3,
|
||||||
|
python3-pyzfs,
|
||||||
|
sudo,
|
||||||
|
sysstat,
|
||||||
|
zfsutils-linux (>=${binary:Version}),
|
||||||
|
${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
|
Recommends: nfs-kernel-server
|
||||||
|
Breaks: zfsutils-linux (<= 0.7.9-2)
|
||||||
|
Replaces: zfsutils-linux (<= 0.7.9-2)
|
||||||
|
Conflicts: zutils
|
||||||
|
Description: OpenZFS test infrastructure and support scripts
|
||||||
|
OpenZFS is a storage platform that encompasses the functionality of
|
||||||
|
traditional filesystems and volume managers. It supports data checksums,
|
||||||
|
compression, encryption, snapshots, and more.
|
||||||
|
.
|
||||||
|
This package provides the OpenZFS test infrastructure for destructively
|
||||||
|
testing and validating a system using OpenZFS. It is entirely optional
|
||||||
|
and should only be installed and used in test environments.
|
||||||
|
|
||||||
|
Package: spl
|
||||||
|
Section: contrib/metapackages
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
Suggests: zfs-test
|
||||||
|
Description: Solaris Porting Layer user-space utilities for Linux (dummy)
|
||||||
|
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
||||||
|
many of the Solaris kernel APIs. This shim layer makes it possible to
|
||||||
|
run Solaris kernel code in the Linux kernel with relatively minimal
|
||||||
|
modification. The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel
|
||||||
|
module which provides a testing harness for the SPL module.
|
||||||
|
.
|
||||||
|
SPL can be particularly useful when you want to track upstream Illumos
|
||||||
|
(or any other OpenSolaris fork) development closely and don't want the
|
||||||
|
overhead of maintaining a large patch which converts Solaris primitives
|
||||||
|
to Linux primitives.
|
||||||
|
.
|
||||||
|
This is a transitional dummy package. It can safely be removed.
|
||||||
|
|
||||||
|
Package: zfs-dbg
|
||||||
|
Section: contrib/metapackages
|
||||||
|
Architecture: all
|
||||||
|
Suggests: libnvpair3linux-dbgsym,
|
||||||
|
libpam-zfs-dbgsym,
|
||||||
|
libuutil3linux-dbgsym,
|
||||||
|
libzfs4linux-dbgsym,
|
||||||
|
libzfsbootenv1linux-dbgsym,
|
||||||
|
libzpool5linux-dbgsym,
|
||||||
|
zfs-test-dbgsym,
|
||||||
|
zfsutils-linux-dbgsym,
|
||||||
|
zfs-zed-dbgsym,
|
||||||
|
Description: Transitional package. It can be safely removed.
|
||||||
Vendored
+1278
File diff suppressed because it is too large
Load Diff
Vendored
+1161
File diff suppressed because it is too large
Load Diff
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/libnvpair.so.*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
package-name-doesnt-match-sonames
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
lib/*/security/pam_zfs_key.so
|
||||||
|
usr/share/pam-configs/zfs_key
|
||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
pam-auth-update --package
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = remove ] ; then
|
||||||
|
pam-auth-update --package --remove zfs_key
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/libuutil.so.*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
package-name-doesnt-match-sonames
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/libzfs.so.*
|
||||||
|
lib/@DEB_HOST_MULTIARCH@/libzfs_core.so.*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
package-name-doesnt-match-sonames
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
lib/libzfsbootenv.so.*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/libzfsbootenv.so.*
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
package-name-doesnt-match-sonames
|
||||||
|
extra-license-file *usr/share/doc/libzfsbootenv1linux/LICENSE.gz*
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/*.a usr/lib/@DEB_HOST_MULTIARCH@/
|
||||||
|
usr/include
|
||||||
|
usr/lib/@DEB_HOST_MULTIARCH@/*.so
|
||||||
|
/usr/lib/@DEB_HOST_MULTIARCH@/pkgconfig/*.pc
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
lib/@DEB_HOST_MULTIARCH@/libzpool.so.*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
package-name-doesnt-match-sonames
|
||||||
Vendored
+13
@@ -0,0 +1,13 @@
|
|||||||
|
usr/share/zfs/enum-extract.pl
|
||||||
|
usr/share/zfs/zfs-helpers.sh
|
||||||
|
etc/default/zfs
|
||||||
|
etc/init.d
|
||||||
|
etc/sudoers.d
|
||||||
|
etc/zfs/vdev_id.conf.alias.example
|
||||||
|
etc/zfs/vdev_id.conf.multipath.example
|
||||||
|
etc/zfs/vdev_id.conf.sas_direct.example
|
||||||
|
etc/zfs/vdev_id.conf.sas_switch.example
|
||||||
|
etc/zfs/vdev_id.conf.scsi.example
|
||||||
|
usr/lib/dracut
|
||||||
|
usr/share/zfs/enum-extract.pl
|
||||||
|
etc/zfs/zfs-functions
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Debian ZFS on Linux maintainers
|
||||||
|
<pkg-zfsonlinux-devel@alioth-lists.debian.net>
|
||||||
|
Date: Wed, 30 Jan 2019 15:12:04 +0100
|
||||||
|
Subject: [PATCH] Check-for-META-and-DCH-consistency-in-autoconf
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
config/zfs-meta.m4 | 34 +++++++++++++++++++++++++++++-----
|
||||||
|
1 file changed, 29 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config/zfs-meta.m4 b/config/zfs-meta.m4
|
||||||
|
index 20064a0fb..4d5f545ad 100644
|
||||||
|
--- a/config/zfs-meta.m4
|
||||||
|
+++ b/config/zfs-meta.m4
|
||||||
|
@@ -1,9 +1,10 @@
|
||||||
|
dnl #
|
||||||
|
dnl # DESCRIPTION:
|
||||||
|
-dnl # Read meta data from the META file. When building from a git repository
|
||||||
|
-dnl # the ZFS_META_RELEASE field will be overwritten if there is an annotated
|
||||||
|
-dnl # tag matching the form ZFS_META_NAME-ZFS_META_VERSION-*. This allows
|
||||||
|
-dnl # for working builds to be uniquely identified using the git commit hash.
|
||||||
|
+dnl # Read meta data from the META file or the debian/changelog file if it
|
||||||
|
+dnl # exists. When building from a git repository the ZFS_META_RELEASE field
|
||||||
|
+dnl # will be overwritten if there is an annotated tag matching the form
|
||||||
|
+dnl # ZFS_META_NAME-ZFS_META_VERSION-*. This allows for working builds to be
|
||||||
|
+dnl # uniquely identified using the git commit hash.
|
||||||
|
dnl #
|
||||||
|
dnl # The META file format is as follows:
|
||||||
|
dnl # ^[ ]*KEY:[ \t]+VALUE$
|
||||||
|
@@ -49,6 +50,7 @@ AC_DEFUN([ZFS_AC_META], [
|
||||||
|
_zfs_ac_meta_type="none"
|
||||||
|
if test -f "$META"; then
|
||||||
|
_zfs_ac_meta_type="META file"
|
||||||
|
+ _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
|
||||||
|
|
||||||
|
ZFS_META_NAME=_ZFS_AC_META_GETVAL([(Name|Project|Package)]);
|
||||||
|
if test -n "$ZFS_META_NAME"; then
|
||||||
|
@@ -69,8 +71,30 @@ AC_DEFUN([ZFS_AC_META], [
|
||||||
|
AC_SUBST([ZFS_META_VERSION])
|
||||||
|
fi
|
||||||
|
|
||||||
|
+ if test -n "${_dpkg_parsechangelog}"; then
|
||||||
|
+ _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
|
||||||
|
+ | $AWK '$[]1 == "Version:" { print $[]2; }' \
|
||||||
|
+ | cut -d- -f1)
|
||||||
|
+ if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
|
||||||
|
+ AC_MSG_ERROR([
|
||||||
|
+ *** Version $ZFS_META_VERSION in the META file is different than
|
||||||
|
+ *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
|
||||||
|
+ *** packaging require that these files have the same version.
|
||||||
|
+ ])
|
||||||
|
+ fi
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
ZFS_META_RELEASE=_ZFS_AC_META_GETVAL([Release]);
|
||||||
|
- if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
|
||||||
|
+
|
||||||
|
+ if test -n "${_dpkg_parsechangelog}"; then
|
||||||
|
+ _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
|
||||||
|
+ | $AWK '$[]1 == "Version:" { print $[]2; }' \
|
||||||
|
+ | cut -d- -f2-)
|
||||||
|
+ if test -n "${_dpkg_release}"; then
|
||||||
|
+ ZFS_META_RELEASE=${_dpkg_release}
|
||||||
|
+ _zfs_ac_meta_type="dpkg-parsechangelog"
|
||||||
|
+ fi
|
||||||
|
+ elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
|
||||||
|
_match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
|
||||||
|
_alias=$(git describe --match=${_match} 2>/dev/null)
|
||||||
|
_release=$(echo ${_alias}|sed "s/${ZFS_META_NAME}//"|cut -f3- -d'-'|tr - _)
|
||||||
+9
-10
@@ -12,19 +12,18 @@ is needed for zfs-mount, zfs-share and zfs-zed services in case ZFS is
|
|||||||
not actually used.
|
not actually used.
|
||||||
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
---
|
---
|
||||||
etc/modules-load.d/zfs.conf.in | 2 +-
|
etc/modules-load.d/zfs.conf | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/etc/modules-load.d/zfs.conf.in b/etc/modules-load.d/zfs.conf.in
|
diff --git a/etc/modules-load.d/zfs.conf b/etc/modules-load.d/zfs.conf
|
||||||
index 8b41baa30..59b058c9a 100644
|
index 44e1bb3ed..7509b03cb 100644
|
||||||
--- a/etc/modules-load.d/zfs.conf.in
|
--- a/etc/modules-load.d/zfs.conf
|
||||||
+++ b/etc/modules-load.d/zfs.conf.in
|
+++ b/etc/modules-load.d/zfs.conf
|
||||||
@@ -1,3 +1,3 @@
|
@@ -1,3 +1,3 @@
|
||||||
# Always load kernel modules at boot. The default behavior is to load the
|
# The default behavior is to allow udev to load the kernel modules on demand.
|
||||||
# kernel modules in the zfs-import-*.service or when blkid(8) detects a pool.
|
# Uncomment the following line to unconditionally load them at boot.
|
||||||
-#zfs
|
-#zfs
|
||||||
+zfs
|
+zfs
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
||||||
|
Date: Mon, 6 Feb 2017 12:04:35 +0100
|
||||||
|
Subject: [PATCH] Fix the path to the zed binary on the systemd unit.
|
||||||
|
|
||||||
|
We install zed into /usr/sbin manually meanwhile the upstream default is
|
||||||
|
installing it into /sbin. Ubuntu packages also install zed to /usr/sbin, but
|
||||||
|
they ship their own zfs-zed unit.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
etc/systemd/system/zfs-zed.service.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/etc/systemd/system/zfs-zed.service.in b/etc/systemd/system/zfs-zed.service.in
|
||||||
|
index be80025a4..20ce8e632 100644
|
||||||
|
--- a/etc/systemd/system/zfs-zed.service.in
|
||||||
|
+++ b/etc/systemd/system/zfs-zed.service.in
|
||||||
|
@@ -4,7 +4,7 @@ Documentation=man:zed(8)
|
||||||
|
ConditionPathIsDirectory=/sys/module/zfs
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
-ExecStart=@sbindir@/zed -F
|
||||||
|
+ExecStart=/usr/sbin/zed -F
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
+7
-8
@@ -7,23 +7,22 @@ Content-Type: text/plain; charset=UTF-8
|
|||||||
Content-Transfer-Encoding: 8bit
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
---
|
---
|
||||||
etc/systemd/system/zfs-import-scan.service.in | 2 +-
|
etc/systemd/system/zfs-import-scan.service.in | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/etc/systemd/system/zfs-import-scan.service.in b/etc/systemd/system/zfs-import-scan.service.in
|
diff --git a/etc/systemd/system/zfs-import-scan.service.in b/etc/systemd/system/zfs-import-scan.service.in
|
||||||
index 227f5b74f..cc428b0d0 100644
|
index 598ef501b..e4f3a70c1 100644
|
||||||
--- a/etc/systemd/system/zfs-import-scan.service.in
|
--- a/etc/systemd/system/zfs-import-scan.service.in
|
||||||
+++ b/etc/systemd/system/zfs-import-scan.service.in
|
+++ b/etc/systemd/system/zfs-import-scan.service.in
|
||||||
@@ -12,7 +12,7 @@ ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
|
@@ -13,7 +13,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
||||||
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStartPre=/sbin/modprobe zfs
|
-ExecStart=@sbindir@/zpool import -aN -o cachefile=none $ZPOOL_IMPORT_OPTS
|
||||||
-ExecStart=@sbindir@/zpool import -aN -o cachefile=none
|
+ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none $ZPOOL_IMPORT_OPTS
|
||||||
+ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs-import.target
|
WantedBy=zfs-import.target
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Richard Laager <rlaager@wiktel.com>
|
||||||
|
Date: Wed, 30 Jan 2019 15:12:04 +0100
|
||||||
|
Subject: [PATCH] Enable zed emails
|
||||||
|
|
||||||
|
The OpenZFS event daemon monitors pools. This patch enables the email sending
|
||||||
|
function by default (if zed is installed). This is consistent with the default
|
||||||
|
behavior of mdadm.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
cmd/zed/zed.d/zed.rc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/cmd/zed/zed.d/zed.rc b/cmd/zed/zed.d/zed.rc
|
||||||
|
index 1dfd43454..0180dd827 100644
|
||||||
|
--- a/cmd/zed/zed.d/zed.rc
|
||||||
|
+++ b/cmd/zed/zed.d/zed.rc
|
||||||
|
@@ -42,7 +42,7 @@ ZED_EMAIL_ADDR="root"
|
||||||
|
##
|
||||||
|
# Minimum number of seconds between notifications for a similar event.
|
||||||
|
#
|
||||||
|
-#ZED_NOTIFY_INTERVAL_SECS=3600
|
||||||
|
+ZED_NOTIFY_INTERVAL_SECS=3600
|
||||||
|
|
||||||
|
##
|
||||||
|
# Notification verbosity.
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Antonio Russo <antonio.e.russo@gmail.com>
|
||||||
|
Date: Fri, 20 Mar 2020 17:28:43 +0100
|
||||||
|
Subject: [PATCH] dont symlink zed scripts
|
||||||
|
|
||||||
|
(cherry picked and adapted from 5cee380324d74e640d5dd7a360faba3994c8007f [0])
|
||||||
|
|
||||||
|
[0] https://salsa.debian.org/zfsonlinux-team/zfs.git
|
||||||
|
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
|
||||||
|
Description: track default symlinks, instead of symlinking
|
||||||
|
Forwarded: no need
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
cmd/zed/zed.d/Makefile.am | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/cmd/zed/zed.d/Makefile.am b/cmd/zed/zed.d/Makefile.am
|
||||||
|
index 1905a9207..6dc06252a 100644
|
||||||
|
--- a/cmd/zed/zed.d/Makefile.am
|
||||||
|
+++ b/cmd/zed/zed.d/Makefile.am
|
||||||
|
@@ -51,7 +51,7 @@ install-data-hook:
|
||||||
|
for f in $(zedconfdefaults); do \
|
||||||
|
test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
|
||||||
|
-L "$(DESTDIR)$(zedconfdir)/$${f}" || \
|
||||||
|
- ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
|
||||||
|
+ echo "$${f}" >> "$(DESTDIR)$(zedexecdir)/DEFAULT-ENABLED" ; \
|
||||||
|
done
|
||||||
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|
||||||
|
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Date: Tue, 15 Sep 2020 19:07:24 +0200
|
||||||
|
Subject: [PATCH] Add systemd-unit for importing specific pools
|
||||||
|
|
||||||
|
The unit can be instantiated with a specific poolname, which will get imported
|
||||||
|
by scanning /dev/disk/by-id, irrespective of the existence and content of
|
||||||
|
/etc/zfs/zpool.cache.
|
||||||
|
|
||||||
|
the instance name is used unescaped (see systemd.unit(5)), since zpool names
|
||||||
|
can contain characters which will be escaped by systemd.
|
||||||
|
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
etc/systemd/system/50-zfs.preset.in | 1 +
|
||||||
|
etc/systemd/system/Makefile.am | 1 +
|
||||||
|
etc/systemd/system/zfs-import@.service.in | 16 ++++++++++++++++
|
||||||
|
3 files changed, 18 insertions(+)
|
||||||
|
create mode 100644 etc/systemd/system/zfs-import@.service.in
|
||||||
|
|
||||||
|
diff --git a/etc/systemd/system/50-zfs.preset.in b/etc/systemd/system/50-zfs.preset.in
|
||||||
|
index e4056a92c..030611419 100644
|
||||||
|
--- a/etc/systemd/system/50-zfs.preset.in
|
||||||
|
+++ b/etc/systemd/system/50-zfs.preset.in
|
||||||
|
@@ -1,6 +1,7 @@
|
||||||
|
# ZFS is enabled by default
|
||||||
|
enable zfs-import-cache.service
|
||||||
|
disable zfs-import-scan.service
|
||||||
|
+enable zfs-import@.service
|
||||||
|
enable zfs-import.target
|
||||||
|
enable zfs-mount.service
|
||||||
|
enable zfs-share.service
|
||||||
|
diff --git a/etc/systemd/system/Makefile.am b/etc/systemd/system/Makefile.am
|
||||||
|
index 35f833de5..af3ae597c 100644
|
||||||
|
--- a/etc/systemd/system/Makefile.am
|
||||||
|
+++ b/etc/systemd/system/Makefile.am
|
||||||
|
@@ -7,6 +7,7 @@ systemdunit_DATA = \
|
||||||
|
zfs-zed.service \
|
||||||
|
zfs-import-cache.service \
|
||||||
|
zfs-import-scan.service \
|
||||||
|
+ zfs-import@.service \
|
||||||
|
zfs-mount.service \
|
||||||
|
zfs-share.service \
|
||||||
|
zfs-volume-wait.service \
|
||||||
|
diff --git a/etc/systemd/system/zfs-import@.service.in b/etc/systemd/system/zfs-import@.service.in
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000..9b4ee9371
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/etc/systemd/system/zfs-import@.service.in
|
||||||
|
@@ -0,0 +1,16 @@
|
||||||
|
+[Unit]
|
||||||
|
+Description=Import ZFS pool %i
|
||||||
|
+Documentation=man:zpool(8)
|
||||||
|
+DefaultDependencies=no
|
||||||
|
+After=systemd-udev-settle.service
|
||||||
|
+After=cryptsetup.target
|
||||||
|
+After=multipathd.target
|
||||||
|
+Before=zfs-import.target
|
||||||
|
+
|
||||||
|
+[Service]
|
||||||
|
+Type=oneshot
|
||||||
|
+RemainAfterExit=yes
|
||||||
|
+ExecStart=@sbindir@/zpool import -N -d /dev/disk/by-id -o cachefile=none %I
|
||||||
|
+
|
||||||
|
+[Install]
|
||||||
|
+WantedBy=zfs-import.target
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Date: Thu, 4 Feb 2021 19:01:12 +0100
|
||||||
|
Subject: [PATCH] Patch: move manpage arcstat(1) to arcstat(8).
|
||||||
|
|
||||||
|
Originally-By: Mo Zhou <cdluminate@gmail.com>
|
||||||
|
Originally-By: Antonio Russo <aerusso@aerusso.net>
|
||||||
|
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
man/Makefile.am | 2 +-
|
||||||
|
man/{man1/arcstat.1 => man8/arcstat.8} | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
rename man/{man1/arcstat.1 => man8/arcstat.8} (99%)
|
||||||
|
|
||||||
|
diff --git a/man/Makefile.am b/man/Makefile.am
|
||||||
|
index 64650c2b9..95a66a62f 100644
|
||||||
|
--- a/man/Makefile.am
|
||||||
|
+++ b/man/Makefile.am
|
||||||
|
@@ -8,7 +8,6 @@ dist_man_MANS = \
|
||||||
|
man1/ztest.1 \
|
||||||
|
man1/raidz_test.1 \
|
||||||
|
man1/zvol_wait.1 \
|
||||||
|
- man1/arcstat.1 \
|
||||||
|
\
|
||||||
|
man5/vdev_id.conf.5 \
|
||||||
|
\
|
||||||
|
@@ -22,6 +21,7 @@ dist_man_MANS = \
|
||||||
|
man7/zpoolconcepts.7 \
|
||||||
|
man7/zpoolprops.7 \
|
||||||
|
\
|
||||||
|
+ man8/arcstat.8 \
|
||||||
|
man8/fsck.zfs.8 \
|
||||||
|
man8/mount.zfs.8 \
|
||||||
|
man8/vdev_id.8 \
|
||||||
|
diff --git a/man/man1/arcstat.1 b/man/man8/arcstat.8
|
||||||
|
similarity index 99%
|
||||||
|
rename from man/man1/arcstat.1
|
||||||
|
rename to man/man8/arcstat.8
|
||||||
|
index a69cd8937..dfe9c971b 100644
|
||||||
|
--- a/man/man1/arcstat.1
|
||||||
|
+++ b/man/man8/arcstat.8
|
||||||
|
@@ -13,7 +13,7 @@
|
||||||
|
.\" Copyright (c) 2020 by AJ Jordan. All rights reserved.
|
||||||
|
.\"
|
||||||
|
.Dd May 26, 2021
|
||||||
|
-.Dt ARCSTAT 1
|
||||||
|
+.Dt ARCSTAT 8
|
||||||
|
.Os
|
||||||
|
.
|
||||||
|
.Sh NAME
|
||||||
@@ -0,0 +1,134 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Valmiky Arquissandas <kayvlim@gmail.com>
|
||||||
|
Date: Fri, 8 Oct 2021 16:32:27 +0100
|
||||||
|
Subject: [PATCH] arcstat: Fix integer division with python3
|
||||||
|
|
||||||
|
The arcstat script requests compatibility with python2 and python3, but
|
||||||
|
PEP 238 modified the / operator and results in erroneous output when
|
||||||
|
run under python3.
|
||||||
|
|
||||||
|
This commit replaces instances of / with //, yielding the expected
|
||||||
|
result in both versions of Python.
|
||||||
|
|
||||||
|
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||||
|
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
|
||||||
|
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
|
||||||
|
Signed-off-by: Valmiky Arquissandas <foss@kayvlim.com>
|
||||||
|
Closes #12603
|
||||||
|
(cherry picked from commit 2d02bba23d83ae8fede8d281edc255f01ccd28e9)
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
cmd/arcstat/arcstat.in | 66 +++++++++++++++++++++---------------------
|
||||||
|
1 file changed, 33 insertions(+), 33 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cmd/arcstat/arcstat.in b/cmd/arcstat/arcstat.in
|
||||||
|
index 0128fd817..d2b2e28d1 100755
|
||||||
|
--- a/cmd/arcstat/arcstat.in
|
||||||
|
+++ b/cmd/arcstat/arcstat.in
|
||||||
|
@@ -441,73 +441,73 @@ def calculate():
|
||||||
|
|
||||||
|
v = dict()
|
||||||
|
v["time"] = time.strftime("%H:%M:%S", time.localtime())
|
||||||
|
- v["hits"] = d["hits"] / sint
|
||||||
|
- v["miss"] = d["misses"] / sint
|
||||||
|
+ v["hits"] = d["hits"] // sint
|
||||||
|
+ v["miss"] = d["misses"] // sint
|
||||||
|
v["read"] = v["hits"] + v["miss"]
|
||||||
|
- v["hit%"] = 100 * v["hits"] / v["read"] if v["read"] > 0 else 0
|
||||||
|
+ v["hit%"] = 100 * v["hits"] // v["read"] if v["read"] > 0 else 0
|
||||||
|
v["miss%"] = 100 - v["hit%"] if v["read"] > 0 else 0
|
||||||
|
|
||||||
|
- v["dhit"] = (d["demand_data_hits"] + d["demand_metadata_hits"]) / sint
|
||||||
|
- v["dmis"] = (d["demand_data_misses"] + d["demand_metadata_misses"]) / sint
|
||||||
|
+ v["dhit"] = (d["demand_data_hits"] + d["demand_metadata_hits"]) // sint
|
||||||
|
+ v["dmis"] = (d["demand_data_misses"] + d["demand_metadata_misses"]) // sint
|
||||||
|
|
||||||
|
v["dread"] = v["dhit"] + v["dmis"]
|
||||||
|
- v["dh%"] = 100 * v["dhit"] / v["dread"] if v["dread"] > 0 else 0
|
||||||
|
+ v["dh%"] = 100 * v["dhit"] // v["dread"] if v["dread"] > 0 else 0
|
||||||
|
v["dm%"] = 100 - v["dh%"] if v["dread"] > 0 else 0
|
||||||
|
|
||||||
|
- v["phit"] = (d["prefetch_data_hits"] + d["prefetch_metadata_hits"]) / sint
|
||||||
|
+ v["phit"] = (d["prefetch_data_hits"] + d["prefetch_metadata_hits"]) // sint
|
||||||
|
v["pmis"] = (d["prefetch_data_misses"] +
|
||||||
|
- d["prefetch_metadata_misses"]) / sint
|
||||||
|
+ d["prefetch_metadata_misses"]) // sint
|
||||||
|
|
||||||
|
v["pread"] = v["phit"] + v["pmis"]
|
||||||
|
- v["ph%"] = 100 * v["phit"] / v["pread"] if v["pread"] > 0 else 0
|
||||||
|
+ v["ph%"] = 100 * v["phit"] // v["pread"] if v["pread"] > 0 else 0
|
||||||
|
v["pm%"] = 100 - v["ph%"] if v["pread"] > 0 else 0
|
||||||
|
|
||||||
|
v["mhit"] = (d["prefetch_metadata_hits"] +
|
||||||
|
- d["demand_metadata_hits"]) / sint
|
||||||
|
+ d["demand_metadata_hits"]) // sint
|
||||||
|
v["mmis"] = (d["prefetch_metadata_misses"] +
|
||||||
|
- d["demand_metadata_misses"]) / sint
|
||||||
|
+ d["demand_metadata_misses"]) // sint
|
||||||
|
|
||||||
|
v["mread"] = v["mhit"] + v["mmis"]
|
||||||
|
- v["mh%"] = 100 * v["mhit"] / v["mread"] if v["mread"] > 0 else 0
|
||||||
|
+ v["mh%"] = 100 * v["mhit"] // v["mread"] if v["mread"] > 0 else 0
|
||||||
|
v["mm%"] = 100 - v["mh%"] if v["mread"] > 0 else 0
|
||||||
|
|
||||||
|
v["arcsz"] = cur["size"]
|
||||||
|
v["size"] = cur["size"]
|
||||||
|
v["c"] = cur["c"]
|
||||||
|
- v["mfu"] = d["mfu_hits"] / sint
|
||||||
|
- v["mru"] = d["mru_hits"] / sint
|
||||||
|
- v["mrug"] = d["mru_ghost_hits"] / sint
|
||||||
|
- v["mfug"] = d["mfu_ghost_hits"] / sint
|
||||||
|
- v["eskip"] = d["evict_skip"] / sint
|
||||||
|
- v["el2skip"] = d["evict_l2_skip"] / sint
|
||||||
|
- v["el2cach"] = d["evict_l2_cached"] / sint
|
||||||
|
- v["el2el"] = d["evict_l2_eligible"] / sint
|
||||||
|
- v["el2mfu"] = d["evict_l2_eligible_mfu"] / sint
|
||||||
|
- v["el2mru"] = d["evict_l2_eligible_mru"] / sint
|
||||||
|
- v["el2inel"] = d["evict_l2_ineligible"] / sint
|
||||||
|
- v["mtxmis"] = d["mutex_miss"] / sint
|
||||||
|
+ v["mfu"] = d["mfu_hits"] // sint
|
||||||
|
+ v["mru"] = d["mru_hits"] // sint
|
||||||
|
+ v["mrug"] = d["mru_ghost_hits"] // sint
|
||||||
|
+ v["mfug"] = d["mfu_ghost_hits"] // sint
|
||||||
|
+ v["eskip"] = d["evict_skip"] // sint
|
||||||
|
+ v["el2skip"] = d["evict_l2_skip"] // sint
|
||||||
|
+ v["el2cach"] = d["evict_l2_cached"] // sint
|
||||||
|
+ v["el2el"] = d["evict_l2_eligible"] // sint
|
||||||
|
+ v["el2mfu"] = d["evict_l2_eligible_mfu"] // sint
|
||||||
|
+ v["el2mru"] = d["evict_l2_eligible_mru"] // sint
|
||||||
|
+ v["el2inel"] = d["evict_l2_ineligible"] // sint
|
||||||
|
+ v["mtxmis"] = d["mutex_miss"] // sint
|
||||||
|
|
||||||
|
if l2exist:
|
||||||
|
- v["l2hits"] = d["l2_hits"] / sint
|
||||||
|
- v["l2miss"] = d["l2_misses"] / sint
|
||||||
|
+ v["l2hits"] = d["l2_hits"] // sint
|
||||||
|
+ v["l2miss"] = d["l2_misses"] // sint
|
||||||
|
v["l2read"] = v["l2hits"] + v["l2miss"]
|
||||||
|
- v["l2hit%"] = 100 * v["l2hits"] / v["l2read"] if v["l2read"] > 0 else 0
|
||||||
|
+ v["l2hit%"] = 100 * v["l2hits"] // v["l2read"] if v["l2read"] > 0 else 0
|
||||||
|
|
||||||
|
v["l2miss%"] = 100 - v["l2hit%"] if v["l2read"] > 0 else 0
|
||||||
|
v["l2asize"] = cur["l2_asize"]
|
||||||
|
v["l2size"] = cur["l2_size"]
|
||||||
|
- v["l2bytes"] = d["l2_read_bytes"] / sint
|
||||||
|
+ v["l2bytes"] = d["l2_read_bytes"] // sint
|
||||||
|
|
||||||
|
v["l2pref"] = cur["l2_prefetch_asize"]
|
||||||
|
v["l2mfu"] = cur["l2_mfu_asize"]
|
||||||
|
v["l2mru"] = cur["l2_mru_asize"]
|
||||||
|
v["l2data"] = cur["l2_bufc_data_asize"]
|
||||||
|
v["l2meta"] = cur["l2_bufc_metadata_asize"]
|
||||||
|
- v["l2pref%"] = 100 * v["l2pref"] / v["l2asize"]
|
||||||
|
- v["l2mfu%"] = 100 * v["l2mfu"] / v["l2asize"]
|
||||||
|
- v["l2mru%"] = 100 * v["l2mru"] / v["l2asize"]
|
||||||
|
- v["l2data%"] = 100 * v["l2data"] / v["l2asize"]
|
||||||
|
- v["l2meta%"] = 100 * v["l2meta"] / v["l2asize"]
|
||||||
|
+ v["l2pref%"] = 100 * v["l2pref"] // v["l2asize"]
|
||||||
|
+ v["l2mfu%"] = 100 * v["l2mfu"] // v["l2asize"]
|
||||||
|
+ v["l2mru%"] = 100 * v["l2mru"] // v["l2asize"]
|
||||||
|
+ v["l2data%"] = 100 * v["l2data"] // v["l2asize"]
|
||||||
|
+ v["l2meta%"] = 100 * v["l2meta"] // v["l2asize"]
|
||||||
|
|
||||||
|
v["grow"] = 0 if cur["arc_no_grow"] else 1
|
||||||
|
v["need"] = cur["arc_need_free"]
|
||||||
+113
@@ -0,0 +1,113 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
Date: Wed, 10 Nov 2021 09:29:47 +0100
|
||||||
|
Subject: [PATCH] arc stat/summary: guard access to l2arc MFU/MRU stats
|
||||||
|
|
||||||
|
commit 085321621e79a75bea41c2b6511da6ebfbf2ba0a added printing MFU
|
||||||
|
and MRU stats for 2.1 user space tools, but those keys are not
|
||||||
|
available in the 2.0 module. That means it may break the arcstat and
|
||||||
|
arc_summary tools after upgrade to 2.1 (user space), before a reboot
|
||||||
|
to the new 2.1 ZFS kernel-module happened, due to python raising a
|
||||||
|
KeyError on the dict access then.
|
||||||
|
|
||||||
|
Move those two keys to a .get accessor with `0` as fallback, as it
|
||||||
|
should be better to show some possible wrong data for new stat-keys
|
||||||
|
than throwing an exception.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
|
||||||
|
also move l2_mfu_asize l2_mru_asize l2_prefetch_asize
|
||||||
|
l2_bufc_data_asize l2_bufc_metadata_asize to .get accessor
|
||||||
|
(these are only present with a cache device in the pool)
|
||||||
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
cmd/arc_summary/arc_summary3 | 28 ++++++++++++++--------------
|
||||||
|
cmd/arcstat/arcstat.in | 14 +++++++-------
|
||||||
|
2 files changed, 21 insertions(+), 21 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3
|
||||||
|
index 9d0c2d30d..fd2581ae2 100755
|
||||||
|
--- a/cmd/arc_summary/arc_summary3
|
||||||
|
+++ b/cmd/arc_summary/arc_summary3
|
||||||
|
@@ -609,13 +609,13 @@ def section_arc(kstats_dict):
|
||||||
|
prt_i1('L2 cached evictions:', f_bytes(arc_stats['evict_l2_cached']))
|
||||||
|
prt_i1('L2 eligible evictions:', f_bytes(arc_stats['evict_l2_eligible']))
|
||||||
|
prt_i2('L2 eligible MFU evictions:',
|
||||||
|
- f_perc(arc_stats['evict_l2_eligible_mfu'],
|
||||||
|
+ f_perc(arc_stats.get('evict_l2_eligible_mfu', 0), # 2.0 module compat
|
||||||
|
arc_stats['evict_l2_eligible']),
|
||||||
|
- f_bytes(arc_stats['evict_l2_eligible_mfu']))
|
||||||
|
+ f_bytes(arc_stats.get('evict_l2_eligible_mfu', 0)))
|
||||||
|
prt_i2('L2 eligible MRU evictions:',
|
||||||
|
- f_perc(arc_stats['evict_l2_eligible_mru'],
|
||||||
|
+ f_perc(arc_stats.get('evict_l2_eligible_mru', 0), # 2.0 module compat
|
||||||
|
arc_stats['evict_l2_eligible']),
|
||||||
|
- f_bytes(arc_stats['evict_l2_eligible_mru']))
|
||||||
|
+ f_bytes(arc_stats.get('evict_l2_eligible_mru', 0)))
|
||||||
|
prt_i1('L2 ineligible evictions:',
|
||||||
|
f_bytes(arc_stats['evict_l2_ineligible']))
|
||||||
|
print()
|
||||||
|
@@ -757,20 +757,20 @@ def section_l2arc(kstats_dict):
|
||||||
|
f_perc(arc_stats['l2_hdr_size'], arc_stats['l2_size']),
|
||||||
|
f_bytes(arc_stats['l2_hdr_size']))
|
||||||
|
prt_i2('MFU allocated size:',
|
||||||
|
- f_perc(arc_stats['l2_mfu_asize'], arc_stats['l2_asize']),
|
||||||
|
- f_bytes(arc_stats['l2_mfu_asize']))
|
||||||
|
+ f_perc(arc_stats.get('l2_mfu_asize', 0), arc_stats['l2_asize']),
|
||||||
|
+ f_bytes(arc_stats.get('l2_mfu_asize', 0))) # 2.0 module compat
|
||||||
|
prt_i2('MRU allocated size:',
|
||||||
|
- f_perc(arc_stats['l2_mru_asize'], arc_stats['l2_asize']),
|
||||||
|
- f_bytes(arc_stats['l2_mru_asize']))
|
||||||
|
+ f_perc(arc_stats.get('l2_mru_asize', 0), arc_stats['l2_asize']),
|
||||||
|
+ f_bytes(arc_stats.get('l2_mru_asize', 0))) # 2.0 module compat
|
||||||
|
prt_i2('Prefetch allocated size:',
|
||||||
|
- f_perc(arc_stats['l2_prefetch_asize'], arc_stats['l2_asize']),
|
||||||
|
- f_bytes(arc_stats['l2_prefetch_asize']))
|
||||||
|
+ f_perc(arc_stats.get('l2_prefetch_asize', 0), arc_stats['l2_asize']),
|
||||||
|
+ f_bytes(arc_stats.get('l2_prefetch_asize',0))) # 2.0 module compat
|
||||||
|
prt_i2('Data (buffer content) allocated size:',
|
||||||
|
- f_perc(arc_stats['l2_bufc_data_asize'], arc_stats['l2_asize']),
|
||||||
|
- f_bytes(arc_stats['l2_bufc_data_asize']))
|
||||||
|
+ f_perc(arc_stats.get('l2_bufc_data_asize', 0), arc_stats['l2_asize']),
|
||||||
|
+ f_bytes(arc_stats.get('l2_bufc_data_asize', 0))) # 2.0 module compat
|
||||||
|
prt_i2('Metadata (buffer content) allocated size:',
|
||||||
|
- f_perc(arc_stats['l2_bufc_metadata_asize'], arc_stats['l2_asize']),
|
||||||
|
- f_bytes(arc_stats['l2_bufc_metadata_asize']))
|
||||||
|
+ f_perc(arc_stats.get('l2_bufc_metadata_asize', 0), arc_stats['l2_asize']),
|
||||||
|
+ f_bytes(arc_stats.get('l2_bufc_metadata_asize', 0))) # 2.0 module compat
|
||||||
|
|
||||||
|
print()
|
||||||
|
prt_1('L2ARC breakdown:', f_hits(l2_access_total))
|
||||||
|
diff --git a/cmd/arcstat/arcstat.in b/cmd/arcstat/arcstat.in
|
||||||
|
index d2b2e28d1..8004940b3 100755
|
||||||
|
--- a/cmd/arcstat/arcstat.in
|
||||||
|
+++ b/cmd/arcstat/arcstat.in
|
||||||
|
@@ -482,8 +482,8 @@ def calculate():
|
||||||
|
v["el2skip"] = d["evict_l2_skip"] // sint
|
||||||
|
v["el2cach"] = d["evict_l2_cached"] // sint
|
||||||
|
v["el2el"] = d["evict_l2_eligible"] // sint
|
||||||
|
- v["el2mfu"] = d["evict_l2_eligible_mfu"] // sint
|
||||||
|
- v["el2mru"] = d["evict_l2_eligible_mru"] // sint
|
||||||
|
+ v["el2mfu"] = d.get("evict_l2_eligible_mfu", 0) // sint
|
||||||
|
+ v["el2mru"] = d.get("evict_l2_eligible_mru", 0) // sint
|
||||||
|
v["el2inel"] = d["evict_l2_ineligible"] // sint
|
||||||
|
v["mtxmis"] = d["mutex_miss"] // sint
|
||||||
|
|
||||||
|
@@ -498,11 +498,11 @@ def calculate():
|
||||||
|
v["l2size"] = cur["l2_size"]
|
||||||
|
v["l2bytes"] = d["l2_read_bytes"] // sint
|
||||||
|
|
||||||
|
- v["l2pref"] = cur["l2_prefetch_asize"]
|
||||||
|
- v["l2mfu"] = cur["l2_mfu_asize"]
|
||||||
|
- v["l2mru"] = cur["l2_mru_asize"]
|
||||||
|
- v["l2data"] = cur["l2_bufc_data_asize"]
|
||||||
|
- v["l2meta"] = cur["l2_bufc_metadata_asize"]
|
||||||
|
+ v["l2pref"] = cur.get("l2_prefetch_asize", 0)
|
||||||
|
+ v["l2mfu"] = cur.get("l2_mfu_asize", 0)
|
||||||
|
+ v["l2mru"] = cur.get("l2_mru_asize", 0)
|
||||||
|
+ v["l2data"] = cur.get("l2_bufc_data_asize", 0)
|
||||||
|
+ v["l2meta"] = cur.get("l2_bufc_metadata_asize", 0)
|
||||||
|
v["l2pref%"] = 100 * v["l2pref"] // v["l2asize"]
|
||||||
|
v["l2mfu%"] = 100 * v["l2mfu"] // v["l2asize"]
|
||||||
|
v["l2mru%"] = 100 * v["l2mru"] // v["l2asize"]
|
||||||
+87
@@ -0,0 +1,87 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Rich Ercolani <214141+rincebrain@users.noreply.github.com>
|
||||||
|
Date: Sat, 26 Aug 2023 14:25:46 -0400
|
||||||
|
Subject: [PATCH] Avoid save/restoring AMX registers to avoid a SPR erratum
|
||||||
|
|
||||||
|
Intel SPR erratum SPR4 says that if you trip into a vmexit while
|
||||||
|
doing FPU save/restore, your AMX register state might misbehave...
|
||||||
|
and by misbehave, I mean save all zeroes incorrectly, leading to
|
||||||
|
explosions if you restore it.
|
||||||
|
|
||||||
|
Since we're not using AMX for anything, the simple way to avoid
|
||||||
|
this is to just not save/restore those when we do anything, since
|
||||||
|
we're killing preemption of any sort across our save/restores.
|
||||||
|
|
||||||
|
If we ever decide to use AMX, it's not clear that we have any
|
||||||
|
way to mitigate this, on Linux...but I am not an expert.
|
||||||
|
|
||||||
|
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||||
|
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
|
||||||
|
Closes #14989
|
||||||
|
Closes #15168
|
||||||
|
(cherry picked from commit 277f2e587b085d1eb8aa48b4ac0768a9ef5745ab)
|
||||||
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
||||||
|
---
|
||||||
|
include/os/linux/kernel/linux/simd_x86.h | 19 ++++++++++++++-----
|
||||||
|
1 file changed, 14 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/include/os/linux/kernel/linux/simd_x86.h b/include/os/linux/kernel/linux/simd_x86.h
|
||||||
|
index 660f0d42d..455167ac8 100644
|
||||||
|
--- a/include/os/linux/kernel/linux/simd_x86.h
|
||||||
|
+++ b/include/os/linux/kernel/linux/simd_x86.h
|
||||||
|
@@ -157,6 +157,15 @@
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifndef XFEATURE_MASK_XTILE
|
||||||
|
+/*
|
||||||
|
+ * For kernels where this doesn't exist yet, we still don't want to break
|
||||||
|
+ * by save/restoring this broken nonsense.
|
||||||
|
+ * See issue #14989 or Intel errata SPR4 for why
|
||||||
|
+ */
|
||||||
|
+#define XFEATURE_MASK_XTILE 0x60000
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include <linux/mm.h>
|
||||||
|
#include <linux/slab.h>
|
||||||
|
|
||||||
|
@@ -319,18 +328,18 @@ kfpu_begin(void)
|
||||||
|
union fpregs_state *state = zfs_kfpu_fpregs[smp_processor_id()];
|
||||||
|
#if defined(HAVE_XSAVES)
|
||||||
|
if (static_cpu_has(X86_FEATURE_XSAVES)) {
|
||||||
|
- kfpu_do_xsave("xsaves", &state->xsave, ~0);
|
||||||
|
+ kfpu_do_xsave("xsaves", &state->xsave, ~XFEATURE_MASK_XTILE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(HAVE_XSAVEOPT)
|
||||||
|
if (static_cpu_has(X86_FEATURE_XSAVEOPT)) {
|
||||||
|
- kfpu_do_xsave("xsaveopt", &state->xsave, ~0);
|
||||||
|
+ kfpu_do_xsave("xsaveopt", &state->xsave, ~XFEATURE_MASK_XTILE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (static_cpu_has(X86_FEATURE_XSAVE)) {
|
||||||
|
- kfpu_do_xsave("xsave", &state->xsave, ~0);
|
||||||
|
+ kfpu_do_xsave("xsave", &state->xsave, ~XFEATURE_MASK_XTILE);
|
||||||
|
} else if (static_cpu_has(X86_FEATURE_FXSR)) {
|
||||||
|
kfpu_save_fxsr(&state->fxsave);
|
||||||
|
} else {
|
||||||
|
@@ -415,12 +424,12 @@ kfpu_end(void)
|
||||||
|
union fpregs_state *state = zfs_kfpu_fpregs[smp_processor_id()];
|
||||||
|
#if defined(HAVE_XSAVES)
|
||||||
|
if (static_cpu_has(X86_FEATURE_XSAVES)) {
|
||||||
|
- kfpu_do_xrstor("xrstors", &state->xsave, ~0);
|
||||||
|
+ kfpu_do_xrstor("xrstors", &state->xsave, ~XFEATURE_MASK_XTILE);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (static_cpu_has(X86_FEATURE_XSAVE)) {
|
||||||
|
- kfpu_do_xrstor("xrstor", &state->xsave, ~0);
|
||||||
|
+ kfpu_do_xrstor("xrstor", &state->xsave, ~XFEATURE_MASK_XTILE);
|
||||||
|
} else if (static_cpu_has(X86_FEATURE_FXSR)) {
|
||||||
|
kfpu_restore_fxsr(&state->fxsave);
|
||||||
|
} else {
|
||||||
|
--
|
||||||
|
2.39.2
|
||||||
|
|
||||||
Vendored
+11
@@ -0,0 +1,11 @@
|
|||||||
|
0001-Check-for-META-and-DCH-consistency-in-autoconf.patch
|
||||||
|
0002-always-load-ZFS-module-on-boot.patch
|
||||||
|
0003-Fix-the-path-to-the-zed-binary-on-the-systemd-unit.patch
|
||||||
|
0004-import-with-d-dev-disk-by-id-in-scan-service.patch
|
||||||
|
0005-Enable-zed-emails.patch
|
||||||
|
0006-dont-symlink-zed-scripts.patch
|
||||||
|
0007-Add-systemd-unit-for-importing-specific-pools.patch
|
||||||
|
0008-Patch-move-manpage-arcstat-1-to-arcstat-8.patch
|
||||||
|
0009-arcstat-Fix-integer-division-with-python3.patch
|
||||||
|
0010-arc-stat-summary-guard-access-to-l2arc-MFU-MRU-stats.patch
|
||||||
|
0011-Avoid-save-restoring-AMX-registers-to-avoid-a-SPR-er.patch
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/python3*
|
||||||
+127
@@ -0,0 +1,127 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
VERSION := $(DEB_VERSION_UPSTREAM)
|
||||||
|
REVISION := $(shell echo $(DEB_VERSION) | cut -d- -f2)
|
||||||
|
|
||||||
|
SPHINX_BUILD = $(shell dpkg -L python3-sphinx | grep -m 1 "/sphinx-build$$")
|
||||||
|
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with autoreconf,python3,sphinxdoc
|
||||||
|
|
||||||
|
adapt_meta_file:
|
||||||
|
@# Embed the downstream version in the module.
|
||||||
|
@sed \
|
||||||
|
-e 's/^Version:.*/Version: $(VERSION)/' \
|
||||||
|
-e 's/^Release:.*/Release: $(REVISION)/' \
|
||||||
|
-i.orig META
|
||||||
|
|
||||||
|
|
||||||
|
override_dh_autoreconf: adapt_meta_file
|
||||||
|
dh_autoreconf
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
@# Build the userland, but don't build the kernel modules.
|
||||||
|
dh_auto_configure -- \
|
||||||
|
--bindir=/usr/bin \
|
||||||
|
--sbindir=/sbin \
|
||||||
|
--libdir=/lib/"$(DEB_HOST_MULTIARCH)" \
|
||||||
|
--with-udevdir=/lib/udev \
|
||||||
|
--with-zfsexecdir=/usr/lib/zfs-linux \
|
||||||
|
--enable-systemd \
|
||||||
|
--enable-pyzfs \
|
||||||
|
--with-python=python3 \
|
||||||
|
--with-pammoduledir='/lib/$(DEB_HOST_MULTIARCH)/security' \
|
||||||
|
--with-pkgconfigdir='/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig' \
|
||||||
|
--with-systemdunitdir=/lib/systemd/system \
|
||||||
|
--with-systemdpresetdir=/lib/systemd/system-preset \
|
||||||
|
--with-systemdgeneratordir=/lib/systemd/system-generators \
|
||||||
|
--with-config=user
|
||||||
|
|
||||||
|
for i in $(wildcard $(CURDIR)/debian/*.install.in) ; do \
|
||||||
|
basename "$$i" | grep _KVERS_ && continue ; \
|
||||||
|
sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' "$$i" > "$${i%%.in}" ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
override_dh_auto_test:
|
||||||
|
ifeq (amd64,$(DEB_HOST_ARCH))
|
||||||
|
# Upstream provides an ABI guarantee that we validate here
|
||||||
|
-$(MAKE) checkabi
|
||||||
|
endif
|
||||||
|
|
||||||
|
# The dh_auto_test rule is disabled because
|
||||||
|
# `make check` cannot run in an unprivileged build environment.
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
@# Install the utilities.
|
||||||
|
$(MAKE) install DESTDIR='$(CURDIR)/debian/tmp'
|
||||||
|
|
||||||
|
# Use upstream's bash completion
|
||||||
|
install -D -t '$(CURDIR)/debian/tmp/usr/share/bash-completion/completions/' \
|
||||||
|
'$(CURDIR)/contrib/bash_completion.d/zfs'
|
||||||
|
|
||||||
|
# Move from bin_dir to /usr/sbin
|
||||||
|
# Remove suffix (.py) as per policy 10.4 - Scripts
|
||||||
|
# https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts
|
||||||
|
mkdir -p '$(CURDIR)/debian/tmp/usr/sbin/'
|
||||||
|
mv '$(CURDIR)/debian/tmp/usr/bin/arc_summary' '$(CURDIR)/debian/tmp/usr/sbin/arc_summary'
|
||||||
|
mv '$(CURDIR)/debian/tmp/usr/bin/arcstat' '$(CURDIR)/debian/tmp/usr/sbin/arcstat'
|
||||||
|
mv '$(CURDIR)/debian/tmp/usr/bin/dbufstat' '$(CURDIR)/debian/tmp/usr/sbin/dbufstat'
|
||||||
|
|
||||||
|
@# Zed has dependencies outside of the system root.
|
||||||
|
mv '$(CURDIR)/debian/tmp/sbin/zed' '$(CURDIR)/debian/tmp/usr/sbin/zed'
|
||||||
|
|
||||||
|
mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
|
||||||
|
for i in `ls $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.so`; do \
|
||||||
|
ln -s /lib/$(DEB_HOST_MULTIARCH)/`readlink $${i}` $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/`basename $${i}`; \
|
||||||
|
rm $${i}; \
|
||||||
|
done
|
||||||
|
|
||||||
|
chmod a-x '$(CURDIR)/debian/tmp/etc/zfs/zfs-functions'
|
||||||
|
chmod a-x '$(CURDIR)/debian/tmp/etc/default/zfs'
|
||||||
|
chmod a-x '$(CURDIR)/debian/tmp/usr/share/bash-completion/completions/zfs'
|
||||||
|
|
||||||
|
override_dh_python3:
|
||||||
|
dh_python3 -p python3-pyzfs
|
||||||
|
|
||||||
|
override_dh_makeshlibs:
|
||||||
|
dh_makeshlibs -a -V
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
dh_strip --dbgsym-migration='zfs-dbg (<< 2.0.4~)'
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
find . -name .gitignore -delete
|
||||||
|
rm -rf zfs-$(DEB_VERSION_UPSTREAM)
|
||||||
|
dh_auto_clean
|
||||||
|
@if test -e META.orig; then mv META.orig META; fi
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
find debian/tmp/lib -name *.la -delete
|
||||||
|
dh_install
|
||||||
|
|
||||||
|
override_dh_missing:
|
||||||
|
dh_missing --fail-missing
|
||||||
|
|
||||||
|
override_dh_installsystemd:
|
||||||
|
# these to lines prevent the restarting of all systemd services, except
|
||||||
|
# zfs-zed - they should not be restarted (importing, mounting, creating
|
||||||
|
# links in /dev, and can cause erros in the log
|
||||||
|
# (upon major.minor change)
|
||||||
|
dh_installsystemd --no-stop-on-upgrade -X zfs-zed.service
|
||||||
|
dh_installsystemd --name zfs-zed
|
||||||
|
|
||||||
|
override_dh_installdocs:
|
||||||
|
dh_installdocs
|
||||||
|
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
|
||||||
|
http_proxy='127.0.0.1:9' $(SPHINX_BUILD) -N -bhtml "$(CURDIR)/contrib/pyzfs/docs/source/" debian/pyzfs-doc/usr/share/doc/pyzfs-doc/html/
|
||||||
|
endif
|
||||||
|
|
||||||
|
# ------------
|
||||||
|
|
||||||
|
debian-copyright:
|
||||||
|
cme update dpkg-copyright -file debian/copyright.cme
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
for x in $(cat /proc/cmdline)
|
||||||
|
do
|
||||||
|
case $x in
|
||||||
|
root=ZFS=*)
|
||||||
|
BOOT=zfs
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
+67
@@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Add udev rules for ZoL to the initrd.
|
||||||
|
#
|
||||||
|
|
||||||
|
PREREQ="udev"
|
||||||
|
PREREQ_UDEV_RULES="60-zvol.rules 69-vdev.rules"
|
||||||
|
COPY_EXEC_LIST="/lib/udev/zvol_id /lib/udev/vdev_id"
|
||||||
|
|
||||||
|
# Generic result code.
|
||||||
|
RC=0
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
prereqs)
|
||||||
|
echo "$PREREQ"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
for ii in $COPY_EXEC_LIST
|
||||||
|
do
|
||||||
|
if [ ! -x "$ii" ]
|
||||||
|
then
|
||||||
|
echo "Error: $ii is not executable."
|
||||||
|
RC=2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$RC" -ne 0 ]
|
||||||
|
then
|
||||||
|
exit "$RC"
|
||||||
|
fi
|
||||||
|
|
||||||
|
. /usr/share/initramfs-tools/hook-functions
|
||||||
|
|
||||||
|
mkdir -p "$DESTDIR/lib/udev/rules.d/"
|
||||||
|
for ii in $PREREQ_UDEV_RULES
|
||||||
|
do
|
||||||
|
if [ -e "/etc/udev/rules.d/$ii" ]
|
||||||
|
then
|
||||||
|
cp -p "/etc/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
|
||||||
|
elif [ -e "/lib/udev/rules.d/$ii" ]
|
||||||
|
then
|
||||||
|
cp -p "/lib/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
|
||||||
|
else
|
||||||
|
echo "Error: Missing udev rule: $ii"
|
||||||
|
echo " This file must be in the /etc/udev/rules.d or /lib/udev/rules.d directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for ii in $COPY_EXEC_LIST
|
||||||
|
do
|
||||||
|
copy_exec "$ii"
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -f '/etc/default/zfs' -a -r '/etc/default/zfs' ]
|
||||||
|
then
|
||||||
|
mkdir -p "$DESTDIR/etc/default"
|
||||||
|
cp -a '/etc/default/zfs' "$DESTDIR/etc/default/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d '/etc/zfs' -a -r '/etc/zfs' ]
|
||||||
|
then
|
||||||
|
mkdir -p "$DESTDIR/etc"
|
||||||
|
cp -a '/etc/zfs' "$DESTDIR/etc/"
|
||||||
|
fi
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
## Allow read-only ZoL commands to be called through sudo
|
||||||
|
## without a password. Remove the first '#' column to enable.
|
||||||
|
##
|
||||||
|
## CAUTION: Any syntax error introduced here will break sudo.
|
||||||
|
##
|
||||||
|
## Cmnd alias specification
|
||||||
|
#Cmnd_Alias C_ZFS = \
|
||||||
|
# /sbin/zfs "", /sbin/zfs help *, \
|
||||||
|
# /sbin/zfs get, /sbin/zfs get *, \
|
||||||
|
# /sbin/zfs list, /sbin/zfs list *, \
|
||||||
|
# /sbin/zpool "", /sbin/zpool help *, \
|
||||||
|
# /sbin/zpool iostat, /sbin/zpool iostat *, \
|
||||||
|
# /sbin/zpool list, /sbin/zpool list *, \
|
||||||
|
# /sbin/zpool status, /sbin/zpool status *, \
|
||||||
|
# /sbin/zpool upgrade, /sbin/zpool upgrade -v
|
||||||
|
#
|
||||||
|
## allow any user to use basic read-only ZFS commands
|
||||||
|
#ALL ALL = (root) NOPASSWD: C_ZFS
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Sub-test to exclude ZVOLs
|
||||||
|
set -e
|
||||||
|
partition="$1"
|
||||||
|
|
||||||
|
. /usr/share/os-prober/common.sh
|
||||||
|
|
||||||
|
if [ "$(stat -L -c %t "$partition")" = "e6" ] ; then
|
||||||
|
debug "$1 is a ZVOL; skipping"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# No ZVOLs found
|
||||||
|
exit 1
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
#!/bin/sh -eu
|
||||||
|
|
||||||
|
# directly exit successfully when zfs module is not loaded
|
||||||
|
if ! [ -d /sys/module/zfs ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# [auto] / enable / disable
|
||||||
|
PROPERTY_NAME="org.debian:periodic-scrub"
|
||||||
|
|
||||||
|
get_property () {
|
||||||
|
# Detect the ${PROPERTY_NAME} property on a given pool.
|
||||||
|
# We are abusing user-defined properties on the root dataset,
|
||||||
|
# since they're not available on pools https://github.com/openzfs/zfs/pull/11680
|
||||||
|
# TODO: use zpool user-defined property when such feature is available.
|
||||||
|
pool="$1"
|
||||||
|
zfs get -H -o value "${PROPERTY_NAME}" "${pool}" 2>/dev/null || return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
scrub_if_not_scrub_in_progress () {
|
||||||
|
pool="$1"
|
||||||
|
if ! zpool status "${pool}" | grep -q "scrub in progress"; then
|
||||||
|
# Ignore errors and continue with scrubbing other pools.
|
||||||
|
zpool scrub "${pool}" || true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Scrub all healthy pools that are not already scrubbing as per their configs.
|
||||||
|
zpool list -H -o health,name 2>&1 | \
|
||||||
|
awk -F'\t' '$1 == "ONLINE" {print $2}' | \
|
||||||
|
while read pool
|
||||||
|
do
|
||||||
|
# read user-defined config
|
||||||
|
ret=$(get_property "${pool}")
|
||||||
|
if [ $? -ne 0 ] || [ "disable" = "${ret}" ]; then
|
||||||
|
:
|
||||||
|
elif [ "-" = "${ret}" ] || [ "auto" = "${ret}" ] || [ "enable" = "${ret}" ]; then
|
||||||
|
scrub_if_not_scrub_in_progress "${pool}"
|
||||||
|
else
|
||||||
|
cat > /dev/stderr <<EOF
|
||||||
|
$0: [WARNING] illegal value "${ret}" for property "${PROPERTY_NAME}" of ZFS dataset "${pool}".
|
||||||
|
$0: Acceptable choices for this property are: auto, enable, disable. The default is auto.
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
done
|
||||||
+69
@@ -0,0 +1,69 @@
|
|||||||
|
#!/bin/sh -u
|
||||||
|
|
||||||
|
# directly exit successfully when zfs module is not loaded
|
||||||
|
if ! [ -d /sys/module/zfs ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# [auto] / enable / disable
|
||||||
|
PROPERTY_NAME="org.debian:periodic-trim"
|
||||||
|
|
||||||
|
get_property () {
|
||||||
|
# Detect the ${PROPERTY_NAME} property on a given pool.
|
||||||
|
# We are abusing user-defined properties on the root dataset,
|
||||||
|
# since they're not available on pools https://github.com/openzfs/zfs/pull/11680
|
||||||
|
# TODO: use zpool user-defined property when such feature is available.
|
||||||
|
pool="$1"
|
||||||
|
zfs get -H -o value "${PROPERTY_NAME}" "${pool}" 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
trim_if_not_already_trimming () {
|
||||||
|
pool="$1"
|
||||||
|
if ! zpool status "${pool}" | grep -q "trimming"; then
|
||||||
|
# This will error on HDD-only pools: doesn't matter
|
||||||
|
zpool trim "${pool}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Walk up the kernel parent names:
|
||||||
|
# this will catch devices from LVM &a.
|
||||||
|
get_transp () {
|
||||||
|
dev="$1"
|
||||||
|
while pd="$(lsblk -dnr -o PKNAME "$dev")"; do
|
||||||
|
if [ -z "$pd" ]; then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
dev="/dev/$pd"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
lsblk -dnr -o TRAN "$dev"
|
||||||
|
}
|
||||||
|
|
||||||
|
pool_is_nvme_only () {
|
||||||
|
pool="$1"
|
||||||
|
# get a list of devices attached to the specified pool
|
||||||
|
zpool list -vHP "${pool}" | \
|
||||||
|
awk -F'\t' '$2 ~ "^/dev/" {print $2}' | \
|
||||||
|
while read -r dev
|
||||||
|
do
|
||||||
|
[ "$(get_transp "$dev")" = "nvme" ] || return
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# TRIM all healthy pools that are not already trimming as per their configs.
|
||||||
|
zpool list -H -o health,name 2>&1 | \
|
||||||
|
awk -F'\t' '$1 == "ONLINE" {print $2}' | \
|
||||||
|
while read -r pool
|
||||||
|
do
|
||||||
|
# read user-defined config
|
||||||
|
ret=$(get_property "${pool}") || continue
|
||||||
|
case "${ret}" in
|
||||||
|
disable);;
|
||||||
|
enable) trim_if_not_already_trimming "${pool}" ;;
|
||||||
|
-|auto) if pool_is_nvme_only "${pool}"; then trim_if_not_already_trimming "${pool}"; fi ;;
|
||||||
|
*) cat > /dev/stderr <<EOF
|
||||||
|
$0: [WARNING] illegal value "${ret}" for property "${PROPERTY_NAME}" of ZFS dataset "${pool}".
|
||||||
|
$0: Acceptable choices for this property are: auto, enable, disable. The default is auto.
|
||||||
|
EOF
|
||||||
|
esac
|
||||||
|
done
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
version=3
|
||||||
|
https://zfsonlinux.org/ .*zfs-([\d\.]+)\.tar\.gz$
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
usr/lib/dracut
|
||||||
|
usr/share/man/man7/dracut.zfs.7
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
../tree/zfs-initramfs/* /
|
||||||
|
usr/share/initramfs-tools/*
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
executable-not-elf-or-script *usr/share/initramfs-tools/scripts/zfs*
|
||||||
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
sbin/zinject
|
||||||
|
sbin/ztest
|
||||||
|
usr/bin/raidz_test
|
||||||
|
usr/share/man/man1/raidz_test.1
|
||||||
|
usr/share/man/man1/test-runner.1
|
||||||
|
usr/share/man/man1/ztest.1
|
||||||
|
usr/share/man/man8/zinject.8
|
||||||
|
usr/share/zfs/common.sh
|
||||||
|
usr/share/zfs/runfiles/
|
||||||
|
usr/share/zfs/test-runner
|
||||||
|
usr/share/zfs/zfs-tests.sh
|
||||||
|
usr/share/zfs/zfs-tests/
|
||||||
|
usr/share/zfs/zfs.sh
|
||||||
|
usr/share/zfs/zimport.sh
|
||||||
|
usr/share/zfs/zloop.sh
|
||||||
Vendored
+13
@@ -0,0 +1,13 @@
|
|||||||
|
arch-dependent-file-in-usr-share
|
||||||
|
command-in-sbin-has-manpage-in-incorrect-section
|
||||||
|
arch-dep-package-has-big-usr-share
|
||||||
|
manpage-without-executable
|
||||||
|
national-encoding *usr/share/zfs/zfs-tests/tests/functional/channel_program/lua_core/tst.lib_table.lua*
|
||||||
|
executable-not-elf-or-script *usr/share/zfs/zfs-tests/tests/functional/cli_root/zfs_jail/jail.conf*
|
||||||
|
package-contains-documentation-outside-usr-share-doc *usr/share/zfs/zfs-tests/*
|
||||||
|
script-not-executable *usr/share/zfs/common.sh*
|
||||||
|
script-not-executable *usr/share/zfs/zfs-tests/include/default.cfg*
|
||||||
|
script-not-executable *usr/share/zfs/zfs-tests/tests/functional/cli_root/zfs_wait/zfs_wait.kshlib*
|
||||||
|
script-not-executable *usr/share/zfs/zfs-tests/tests/functional/cli_root/zpool_wait/zpool_wait.kshlib*
|
||||||
|
script-not-executable *usr/share/zfs/zfs-tests/tests/functional/l2arc/l2arc.cfg*
|
||||||
|
script-not-executable *usr/share/zfs/zfs-tests/tests/functional/redacted_send/redacted.kshlib*
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
etc/zfs/zed.d/*
|
||||||
|
lib/systemd/system/zfs-zed.service
|
||||||
|
usr/lib/zfs-linux/zed.d/*
|
||||||
|
usr/sbin/zed
|
||||||
|
usr/share/man/man8/zed.8
|
||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
script-not-executable
|
||||||
|
# https://github.com/zfsonlinux/zfs/issues/8064
|
||||||
|
systemd-service-file-refers-to-unusual-wantedby-target
|
||||||
Vendored
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
zedd="/usr/lib/zfs-linux/zed.d"
|
||||||
|
etcd="/etc/zfs/zed.d"
|
||||||
|
|
||||||
|
# enable all default zedlets that are not overridden
|
||||||
|
while read -r file ; do
|
||||||
|
etcfile="${etcd}/${file}"
|
||||||
|
[ -e "${etcfile}" ] && continue
|
||||||
|
ln -sfT "${zedd}/${file}" "${etcfile}"
|
||||||
|
done < "${zedd}/DEFAULT-ENABLED"
|
||||||
|
|
||||||
|
# remove the overrides created in prerm
|
||||||
|
find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
|
||||||
|
# remove any dangling symlinks to old zedlets
|
||||||
|
find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l -delete
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
Vendored
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
zedd="/usr/lib/zfs-linux/zed.d"
|
||||||
|
etcd="/etc/zfs/zed.d"
|
||||||
|
|
||||||
|
if [ "$1" = "purge" ] && [ -d "$etcd" ] ; then
|
||||||
|
# remove the overrides created in prerm
|
||||||
|
find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
|
||||||
|
# remove any dangling symlinks to old zedlets
|
||||||
|
find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l -delete
|
||||||
|
# clean up any empty directories
|
||||||
|
( rmdir "$etcd" && rmdir "/etc/zfs" ) || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
Vendored
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
zedd="/usr/lib/zfs-linux/zed.d"
|
||||||
|
etcd="/etc/zfs/zed.d"
|
||||||
|
|
||||||
|
if [ "$1" != "failed-upgrade" ] && [ -d "${etcd}" ] && [ -d "${zedd}" ] ; then
|
||||||
|
while read -r file ; do
|
||||||
|
etcfile="${etcd}/${file}"
|
||||||
|
( [ -L "${etcfile}" ] || [ -e "${etcfile}" ] ) && continue
|
||||||
|
ln -sT /dev/null "${etcfile}"
|
||||||
|
done < "${zedd}/DEFAULT-ENABLED"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
|
# TRIM the first Sunday of every month.
|
||||||
|
24 0 1-7 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/trim ]; then /usr/lib/zfs-linux/trim; fi
|
||||||
|
|
||||||
|
# Scrub the second Sunday of every month.
|
||||||
|
24 0 8-14 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ]; then /usr/lib/zfs-linux/scrub; fi
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
COPYRIGHT
|
||||||
|
LICENSE
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
etc/zfs/vdev_id.conf.alias.example
|
||||||
|
etc/zfs/vdev_id.conf.multipath.example
|
||||||
|
etc/zfs/vdev_id.conf.sas_direct.example
|
||||||
|
etc/zfs/vdev_id.conf.sas_switch.example
|
||||||
|
etc/zfs/vdev_id.conf.scsi.example
|
||||||
Vendored
+132
@@ -0,0 +1,132 @@
|
|||||||
|
../tree/zfsutils-linux/* /
|
||||||
|
etc/default/zfs
|
||||||
|
etc/zfs/zfs-functions
|
||||||
|
etc/zfs/zpool.d/
|
||||||
|
lib/systemd/system-preset/
|
||||||
|
lib/systemd/system/zfs-import-cache.service
|
||||||
|
lib/systemd/system/zfs-import-scan.service
|
||||||
|
lib/systemd/system/zfs-import@.service
|
||||||
|
lib/systemd/system/zfs-import.target
|
||||||
|
lib/systemd/system/zfs-import.service
|
||||||
|
lib/systemd/system/zfs-load-key.service
|
||||||
|
lib/systemd/system/zfs-mount.service
|
||||||
|
lib/systemd/system/zfs-scrub-monthly@.timer
|
||||||
|
lib/systemd/system/zfs-scrub-weekly@.timer
|
||||||
|
lib/systemd/system/zfs-scrub@.service
|
||||||
|
lib/systemd/system/zfs-share.service
|
||||||
|
lib/systemd/system/zfs-volume-wait.service
|
||||||
|
lib/systemd/system/zfs-volumes.target
|
||||||
|
lib/systemd/system/zfs.target
|
||||||
|
lib/systemd/system-generators/zfs-mount-generator
|
||||||
|
lib/udev/
|
||||||
|
sbin/fsck.zfs
|
||||||
|
sbin/mount.zfs
|
||||||
|
sbin/zdb
|
||||||
|
sbin/zfs
|
||||||
|
sbin/zfs_ids_to_path
|
||||||
|
sbin/zgenhostid
|
||||||
|
sbin/zhack
|
||||||
|
sbin/zpool
|
||||||
|
sbin/zstream
|
||||||
|
sbin/zstreamdump
|
||||||
|
usr/bin/zvol_wait
|
||||||
|
usr/lib/modules-load.d/ lib/
|
||||||
|
usr/lib/zfs-linux/zfs_prepare_disk
|
||||||
|
usr/lib/zfs-linux/zpool.d/
|
||||||
|
usr/lib/zfs-linux/zpool_influxdb
|
||||||
|
usr/sbin/arc_summary
|
||||||
|
usr/sbin/arcstat
|
||||||
|
usr/sbin/dbufstat
|
||||||
|
usr/share/bash-completion/completions
|
||||||
|
usr/share/man/man8/arcstat.8
|
||||||
|
usr/share/man/man1/zhack.1
|
||||||
|
usr/share/man/man1/zvol_wait.1
|
||||||
|
usr/share/man/man4/zfs.4
|
||||||
|
usr/share/man/man4/spl.4
|
||||||
|
usr/share/man/man5/
|
||||||
|
usr/share/man/man7/zfsconcepts.7
|
||||||
|
usr/share/man/man7/zfsprops.7
|
||||||
|
usr/share/man/man7/zpoolconcepts.7
|
||||||
|
usr/share/man/man7/zpoolprops.7
|
||||||
|
usr/share/man/man7/zpool-features.7
|
||||||
|
usr/share/man/man8/fsck.zfs.8
|
||||||
|
usr/share/man/man8/mount.zfs.8
|
||||||
|
usr/share/man/man8/vdev_id.8
|
||||||
|
usr/share/man/man8/zdb.8
|
||||||
|
usr/share/man/man8/zfs-allow.8
|
||||||
|
usr/share/man/man8/zfs-bookmark.8
|
||||||
|
usr/share/man/man8/zfs-change-key.8
|
||||||
|
usr/share/man/man8/zfs-clone.8
|
||||||
|
usr/share/man/man8/zfs-create.8
|
||||||
|
usr/share/man/man8/zfs-destroy.8
|
||||||
|
usr/share/man/man8/zfs-diff.8
|
||||||
|
usr/share/man/man8/zfs-get.8
|
||||||
|
usr/share/man/man8/zfs-groupspace.8
|
||||||
|
usr/share/man/man8/zfs-hold.8
|
||||||
|
usr/share/man/man8/zfs-inherit.8
|
||||||
|
usr/share/man/man8/zfs-jail.8
|
||||||
|
usr/share/man/man8/zfs-list.8
|
||||||
|
usr/share/man/man8/zfs-load-key.8
|
||||||
|
usr/share/man/man8/zfs-mount-generator.8
|
||||||
|
usr/share/man/man8/zfs-mount.8
|
||||||
|
usr/share/man/man8/zfs_prepare_disk.8
|
||||||
|
usr/share/man/man8/zfs-program.8
|
||||||
|
usr/share/man/man8/zfs-project.8
|
||||||
|
usr/share/man/man8/zfs-projectspace.8
|
||||||
|
usr/share/man/man8/zfs-promote.8
|
||||||
|
usr/share/man/man8/zfs-receive.8
|
||||||
|
usr/share/man/man8/zfs-recv.8
|
||||||
|
usr/share/man/man8/zfs-redact.8
|
||||||
|
usr/share/man/man8/zfs-release.8
|
||||||
|
usr/share/man/man8/zfs-rename.8
|
||||||
|
usr/share/man/man8/zfs-rollback.8
|
||||||
|
usr/share/man/man8/zfs-send.8
|
||||||
|
usr/share/man/man8/zfs-set.8
|
||||||
|
usr/share/man/man8/zfs-share.8
|
||||||
|
usr/share/man/man8/zfs-snapshot.8
|
||||||
|
usr/share/man/man8/zfs-unallow.8
|
||||||
|
usr/share/man/man8/zfs-unjail.8
|
||||||
|
usr/share/man/man8/zfs-unload-key.8
|
||||||
|
usr/share/man/man8/zfs-unmount.8
|
||||||
|
usr/share/man/man8/zfs-upgrade.8
|
||||||
|
usr/share/man/man8/zfs-userspace.8
|
||||||
|
usr/share/man/man8/zfs-wait.8
|
||||||
|
usr/share/man/man8/zfs.8
|
||||||
|
usr/share/man/man8/zfs_ids_to_path.8
|
||||||
|
usr/share/man/man8/zgenhostid.8
|
||||||
|
usr/share/man/man8/zpool-add.8
|
||||||
|
usr/share/man/man8/zpool-attach.8
|
||||||
|
usr/share/man/man8/zpool-checkpoint.8
|
||||||
|
usr/share/man/man8/zpool-clear.8
|
||||||
|
usr/share/man/man8/zpool-create.8
|
||||||
|
usr/share/man/man8/zpool-destroy.8
|
||||||
|
usr/share/man/man8/zpool-detach.8
|
||||||
|
usr/share/man/man8/zpool-events.8
|
||||||
|
usr/share/man/man8/zpool-export.8
|
||||||
|
usr/share/man/man8/zpool-get.8
|
||||||
|
usr/share/man/man8/zpool-history.8
|
||||||
|
usr/share/man/man8/zpool-import.8
|
||||||
|
usr/share/man/man8/zpool_influxdb.8
|
||||||
|
usr/share/man/man8/zpool-initialize.8
|
||||||
|
usr/share/man/man8/zpool-iostat.8
|
||||||
|
usr/share/man/man8/zpool-labelclear.8
|
||||||
|
usr/share/man/man8/zpool-list.8
|
||||||
|
usr/share/man/man8/zpool-offline.8
|
||||||
|
usr/share/man/man8/zpool-online.8
|
||||||
|
usr/share/man/man8/zpool-reguid.8
|
||||||
|
usr/share/man/man8/zpool-remove.8
|
||||||
|
usr/share/man/man8/zpool-reopen.8
|
||||||
|
usr/share/man/man8/zpool-replace.8
|
||||||
|
usr/share/man/man8/zpool-resilver.8
|
||||||
|
usr/share/man/man8/zpool-scrub.8
|
||||||
|
usr/share/man/man8/zpool-set.8
|
||||||
|
usr/share/man/man8/zpool-split.8
|
||||||
|
usr/share/man/man8/zpool-status.8
|
||||||
|
usr/share/man/man8/zpool-sync.8
|
||||||
|
usr/share/man/man8/zpool-trim.8
|
||||||
|
usr/share/man/man8/zpool-upgrade.8
|
||||||
|
usr/share/man/man8/zpool-wait.8
|
||||||
|
usr/share/man/man8/zpool.8
|
||||||
|
usr/share/man/man8/zstream.8
|
||||||
|
usr/share/man/man8/zstreamdump.8
|
||||||
|
usr/share/zfs/compatibility.d/
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
sbin/zfs bin/zfs
|
||||||
|
sbin/zpool bin/zpool
|
||||||
|
usr/lib/zfs-linux/zpool_influxdb bin/zpool_influxdb
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
spare-manual-page
|
||||||
|
systemd-service-file-refers-to-unusual-wantedby-target
|
||||||
|
binary-without-manpage *usr/sbin/dbufstat*
|
||||||
|
binary-without-manpage *usr/sbin/arc_summary*
|
||||||
|
manpage-has-errors-from-man
|
||||||
|
appstream-metadata-missing-modalias-provide
|
||||||
|
command-in-sbin-has-manpage-in-incorrect-section
|
||||||
|
package-supports-alternative-init-but-no-init.d-script *lib/systemd/system/zfs-import-cache.service*
|
||||||
|
package-supports-alternative-init-but-no-init.d-script *lib/systemd/system/zfs-import-scan.service*
|
||||||
|
spelling-error-in-manpage
|
||||||
|
package-supports-alternative-init-but-no-init.d-script *lib/systemd/system/zfs-volume-wait.service*
|
||||||
|
systemd-service-file-missing-documentation-key *lib/systemd/system/zfs-volume-wait.service*
|
||||||
|
extra-license-file *usr/share/doc/zfsutils-linux/LICENSE.gz*
|
||||||
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
# The hostname and hostid of the last system to access a ZFS pool are stored in
|
||||||
|
# the ZFS pool itself. A pool is foreign if, during `zpool import`, the
|
||||||
|
# current hostname and hostid are different than the stored values thereof.
|
||||||
|
#
|
||||||
|
# The only way of having a stable hostid is to define it in /etc/hostid.
|
||||||
|
# This postinst helper will check if we already have the hostid stabilized by
|
||||||
|
# checking the existence of the file /etc/hostid to be 4 bytes at least.
|
||||||
|
# If this file don't already exists on our system or has less than 4 bytes, then
|
||||||
|
# a new (random) value is generated with zgenhostid (8) and stored in
|
||||||
|
# /etc/hostid
|
||||||
|
|
||||||
|
if [ ! -f /etc/hostid ] || [ "$(stat -c %s /etc/hostid)" -lt 4 ] ; then
|
||||||
|
zgenhostid
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
spl-linux (0.7.7-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update SPL to 0.7.7
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 3 Apr 2018 14:28:35 +0200
|
|
||||||
|
|
||||||
spl-linux (0.7.6-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update SPL to 0.7.6
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 21 Feb 2018 09:47:54 +0100
|
|
||||||
|
|
||||||
spl-linux (0.7.4-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update SPL to 0.7.4
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 19 Dec 2017 12:52:42 +0100
|
|
||||||
|
|
||||||
spl-linux (0.7.3-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update spl to 0.7.3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Nov 2017 09:14:19 +0100
|
|
||||||
|
|
||||||
spl-linux (0.7.2-pve1~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update spl to 0.7.2
|
|
||||||
|
|
||||||
* clean up man pages
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 12 Oct 2017 13:33:04 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5.11-pve10~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update spl to debian/0.6.5.11-1
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Jul 2017 13:11:45 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5.9-pve9~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* rebuild for PVE 5.0 / Debian Stretch
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Mar 2017 09:45:52 +0100
|
|
||||||
|
|
||||||
spl-linux (0.6.5.9-pve8~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update spl to debian/0.6.5.9-1
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Feb 2017 12:39:35 +0100
|
|
||||||
|
|
||||||
spl-linux (0.6.5.8-pve7~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update spl to debian/0.6.5.8-2
|
|
||||||
|
|
||||||
* switch package upstream sources to Debian (Jessie)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 12 Oct 2016 11:16:02 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5.7-pve6~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update pkg-spl to jessie/0.6.5.7-5
|
|
||||||
|
|
||||||
* change package versioning to allow upgrades from PVE3/wheezy
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Jun 2016 09:50:00 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5-pve5~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Update pkg-spl to jessie/0.6.5.6-3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Fri, 15 Apr 2016 11:11:59 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5-pve4~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.5.6
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 30 Mar 2016 10:49:49 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.5-pve3~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.5.4
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 14 Jan 2016 11:00:40 +0100
|
|
||||||
|
|
||||||
spl-linux (0.6.5-pve2~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.5.3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 04 Nov 2015 17:40:58 +0100
|
|
||||||
|
|
||||||
spl-linux (0.6.5-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to master/debian/jessie/0.6.5-1
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 21 Sep 2015 10:04:23 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.4-pve3~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to snapshot/debian/jessie/0.6.4-8-8ac6ff
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 24 Aug 2015 06:14:12 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.4-pve2~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.4.2 (snapshot/debian/jessie/0.6.4-6-37d7cd)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 21 Jul 2015 11:02:31 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.4-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.4 (use upstream zol package definitions)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 14 Apr 2015 10:17:26 +0200
|
|
||||||
|
|
||||||
spl-linux (0.6.3-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* recompile for jessie
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Feb 2015 16:03:01 +0100
|
|
||||||
|
|
||||||
spl-linux (0.6.3-pve1~wheezy) unstable; urgency=low
|
|
||||||
|
|
||||||
* first version for Proxmox VE
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Sat, 10 Jan 2015 14:06:34 +0100
|
|
||||||
|
|
||||||
-1
Submodule spl-debian deleted from d169ca25d5
@@ -1,170 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
|
||||||
Date: Wed, 12 Oct 2016 10:57:39 +0200
|
|
||||||
Subject: [PATCH] remove DKMS and module build
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
debian/control.in | 30 ------------------------
|
|
||||||
debian/control | 1 -
|
|
||||||
debian/rules | 70 ++-----------------------------------------------------
|
|
||||||
3 files changed, 2 insertions(+), 99 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/debian/control.in b/debian/control.in
|
|
||||||
index 02d3182..5fd81aa 100644
|
|
||||||
--- a/debian/control.in
|
|
||||||
+++ b/debian/control.in
|
|
||||||
@@ -8,46 +8,16 @@ Build-Depends: autogen,
|
|
||||||
autotools-dev,
|
|
||||||
debhelper (>= 9),
|
|
||||||
dh-autoreconf,
|
|
||||||
- dkms (>> 2.2.0.2-1~),
|
|
||||||
libtool
|
|
||||||
Standards-Version: 4.1.2
|
|
||||||
Homepage: http://www.zfsonlinux.org/
|
|
||||||
Vcs-Git: git@salsa.debian.org:zfsonlinux-team/spl.git
|
|
||||||
Vcs-Browser: https://salsa.debian.org/zfsonlinux-team/spl
|
|
||||||
|
|
||||||
-Package: spl-dkms
|
|
||||||
-Architecture: all
|
|
||||||
-Depends: dkms (>> 2.2.1.0),
|
|
||||||
- file,
|
|
||||||
- libc-dev,
|
|
||||||
- libelf-dev,
|
|
||||||
- lsb-release,
|
|
||||||
- ${misc:Depends}
|
|
||||||
-Recommends: spl (>= ${source:Upstream-Version}),
|
|
||||||
- @LINUX_COMPAT@
|
|
||||||
-Provides: spl-modules
|
|
||||||
-Description: Solaris Porting Layer kernel modules for Linux
|
|
||||||
- The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
|
||||||
- many of the Solaris kernel APIs. This shim layer makes it possible to
|
|
||||||
- run Solaris kernel code in the Linux kernel with relatively minimal
|
|
||||||
- modification. The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel
|
|
||||||
- module which provides a testing harness for the SPL module.
|
|
||||||
- .
|
|
||||||
- SPL can be particularly useful when you want to track upstream Illumos
|
|
||||||
- (or any other OpenSolaris fork) development closely and don't want the
|
|
||||||
- overhead of maintaining a large patch which converts Solaris primitives
|
|
||||||
- to Linux primitives.
|
|
||||||
- .
|
|
||||||
- This package contains the source code for the SPL and SPLAT Linux kernel
|
|
||||||
- modules, which can be used with DKMS, so that local kernel modules are
|
|
||||||
- automatically built and installed every time the kernel packages are
|
|
||||||
- upgraded.
|
|
||||||
-
|
|
||||||
Package: spl
|
|
||||||
Architecture: linux-any
|
|
||||||
Conflicts: spl-dev, splat
|
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
|
||||||
-Recommends: spl-modules | spl-dkms
|
|
||||||
Description: Solaris Porting Layer user-space utilities for Linux
|
|
||||||
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
|
|
||||||
many of the Solaris kernel APIs. This shim layer makes it possible to
|
|
||||||
diff --git a/debian/control b/debian/control
|
|
||||||
index c3abf8d..455c34d 100644
|
|
||||||
--- a/debian/control
|
|
||||||
+++ b/debian/control
|
|
||||||
@@ -8,7 +8,6 @@ Build-Depends: autogen,
|
|
||||||
autotools-dev,
|
|
||||||
debhelper (>= 9),
|
|
||||||
dh-autoreconf,
|
|
||||||
- dkms (>> 2.2.0.2-1~),
|
|
||||||
libtool
|
|
||||||
Standards-Version: 4.1.2
|
|
||||||
Homepage: http://www.zfsonlinux.org/
|
|
||||||
diff --git a/debian/rules b/debian/rules
|
|
||||||
index c7f2608..bca58f7 100755
|
|
||||||
--- a/debian/rules
|
|
||||||
+++ b/debian/rules
|
|
||||||
@@ -14,12 +14,8 @@ ifndef KVERS
|
|
||||||
KVERS=$(shell uname -r)
|
|
||||||
endif
|
|
||||||
|
|
||||||
-non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
|
|
||||||
-PACKAGE=spl
|
|
||||||
-pmodules = $(PACKAGE)-modules-$(non_epoch_version)
|
|
||||||
-
|
|
||||||
%:
|
|
||||||
- dh $@ --with dkms,autoreconf --parallel
|
|
||||||
+ dh $@ --with autoreconf --parallel
|
|
||||||
|
|
||||||
override_dh_auto_configure:
|
|
||||||
sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
|
|
||||||
@@ -45,69 +41,7 @@ override_dh_auto_install:
|
|
||||||
@# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree.
|
|
||||||
$(MAKE) distdir
|
|
||||||
|
|
||||||
- @# This shunt allows DKMS to install the Module.symvers and spl_config.h
|
|
||||||
- @# files to the ${dkms_tree} area through the POST_INSTALL directive.
|
|
||||||
- echo '#!/bin/sh' >'$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
||||||
- echo 'cp "$$@"' >>'$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
||||||
- chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/cp'
|
|
||||||
-
|
|
||||||
- # Install the DKMS source.
|
|
||||||
- mkdir -p '$(CURDIR)/debian/tmp/usr/src/'
|
|
||||||
- mv '$(CURDIR)/$(NAME)-$(VERSION)' '$(CURDIR)/debian/tmp/usr/src/'
|
|
||||||
-
|
|
||||||
-override_dh_dkms:
|
|
||||||
- dh_dkms -V $(VERSION)
|
|
||||||
-
|
|
||||||
override_dh_auto_clean:
|
|
||||||
dh_auto_clean
|
|
||||||
@if test -e META.orig; then mv META.orig META; fi
|
|
||||||
- sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
|
|
||||||
-
|
|
||||||
-# ------------
|
|
||||||
-
|
|
||||||
-override_dh_prep-deb-files:
|
|
||||||
- for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
|
|
||||||
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
|
|
||||||
- < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
|
|
||||||
- done
|
|
||||||
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
|
|
||||||
- < debian/control.modules.in > debian/control
|
|
||||||
-
|
|
||||||
-override_dh_configure_modules: override_dh_configure_modules_stamp
|
|
||||||
-override_dh_configure_modules_stamp:
|
|
||||||
- ./configure --with-config=kernel --with-linux=$(KSRC) \
|
|
||||||
- --with-linux-obj=$(KOBJ) \
|
|
||||||
- --disable-debug-kmem
|
|
||||||
- touch override_dh_configure_modules_stamp
|
|
||||||
-
|
|
||||||
-override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configure_modules
|
|
||||||
- dh_testdir
|
|
||||||
- dh_testroot
|
|
||||||
- dh_prep
|
|
||||||
-
|
|
||||||
- $(MAKE) -C $(CURDIR)/module modules
|
|
||||||
-
|
|
||||||
- dh_installdirs -p${pmodules}-di
|
|
||||||
- dh_install -p${pmodules}-di
|
|
||||||
- dh_gencontrol -p${pmodules}-di
|
|
||||||
-
|
|
||||||
- dh_builddeb -p${pmodules}-di
|
|
||||||
-
|
|
||||||
-override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
|
|
||||||
- dh_testdir
|
|
||||||
- dh_testroot
|
|
||||||
- dh_prep
|
|
||||||
-
|
|
||||||
- $(MAKE) -C $(CURDIR)/module modules
|
|
||||||
-
|
|
||||||
- dh_installdocs -p${pmodules}
|
|
||||||
- dh_install -p${pmodules}
|
|
||||||
- dh_installchangelogs -p${pmodules}
|
|
||||||
- dh_compress -p${pmodules}
|
|
||||||
- dh_strip -p${pmodules}
|
|
||||||
- dh_fixperms -p${pmodules}
|
|
||||||
- dh_installdeb -p${pmodules}
|
|
||||||
- dh_gencontrol -p${pmodules}
|
|
||||||
- dh_md5sums -p${pmodules}
|
|
||||||
-
|
|
||||||
- dh_builddeb -p${pmodules}
|
|
||||||
+ cp debian/control.in debian/control
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: gaurkuma <gaurkuma@users.noreply.github.com>
|
|
||||||
Date: Fri, 11 Aug 2017 08:53:35 -0700
|
|
||||||
Subject: [PATCH] Allow longer SPA names in stats
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
|
||||||
Signed-off-by: gaurkuma <gauravk.18@gmail.com>
|
|
||||||
Closes #641
|
|
||||||
(cherry picked from commit cbf0dff3d8a13c2b4e547321ff2005055521e5ee)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
include/sys/kstat.h | 2 +-
|
|
||||||
module/spl/spl-kstat.c | 13 +++++++++----
|
|
||||||
2 files changed, 10 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/include/sys/kstat.h b/include/sys/kstat.h
|
|
||||||
index faf6b81..7862ab0 100644
|
|
||||||
--- a/include/sys/kstat.h
|
|
||||||
+++ b/include/sys/kstat.h
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
#include <sys/kmem.h>
|
|
||||||
#include <sys/mutex.h>
|
|
||||||
|
|
||||||
-#define KSTAT_STRLEN 31
|
|
||||||
+#define KSTAT_STRLEN 255
|
|
||||||
#define KSTAT_RAW_MAX (128*1024)
|
|
||||||
|
|
||||||
/* For reference valid classes are:
|
|
||||||
diff --git a/module/spl/spl-kstat.c b/module/spl/spl-kstat.c
|
|
||||||
index e306915..ed52653 100644
|
|
||||||
--- a/module/spl/spl-kstat.c
|
|
||||||
+++ b/module/spl/spl-kstat.c
|
|
||||||
@@ -614,21 +614,26 @@ kstat_detect_collision(kstat_t *ksp)
|
|
||||||
{
|
|
||||||
kstat_module_t *module;
|
|
||||||
kstat_t *tmp;
|
|
||||||
- char parent[KSTAT_STRLEN+1];
|
|
||||||
+ char *parent;
|
|
||||||
char *cp;
|
|
||||||
|
|
||||||
- (void) strlcpy(parent, ksp->ks_module, sizeof(parent));
|
|
||||||
+ parent = kmem_asprintf("%s", ksp->ks_module);
|
|
||||||
|
|
||||||
- if ((cp = strrchr(parent, '/')) == NULL)
|
|
||||||
+ if ((cp = strrchr(parent, '/')) == NULL) {
|
|
||||||
+ strfree(parent);
|
|
||||||
return (0);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
cp[0] = '\0';
|
|
||||||
if ((module = kstat_find_module(parent)) != NULL) {
|
|
||||||
list_for_each_entry(tmp, &module->ksm_kstat_list, ks_list)
|
|
||||||
- if (strncmp(tmp->ks_name, cp+1, KSTAT_STRLEN) == 0)
|
|
||||||
+ if (strncmp(tmp->ks_name, cp+1, KSTAT_STRLEN) == 0) {
|
|
||||||
+ strfree(parent);
|
|
||||||
return (EEXIST);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
+ strfree(parent);
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,527 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Fri, 27 Oct 2017 15:49:14 -0700
|
|
||||||
Subject: [PATCH] Remove vn_rename and vn_remove
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Both vn_rename and vn_remove have been historically problematic
|
|
||||||
to implement reliably. Rather than fixing them yet again they
|
|
||||||
are being removed.
|
|
||||||
|
|
||||||
Reviewed-by: Arkadiusz Bubala <arkadiusz.bubala@open-e.com>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #648
|
|
||||||
Closes #661
|
|
||||||
(cherry picked from commit 1cb26f06524bdddef24352a3d9ac90a402294f2b)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
include/sys/vnode.h | 2 -
|
|
||||||
module/spl/spl-vnode.c | 217 ---------------------------------------------
|
|
||||||
module/splat/splat-vnode.c | 96 --------------------
|
|
||||||
config/spl-build.m4 | 101 ---------------------
|
|
||||||
4 files changed, 416 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/include/sys/vnode.h b/include/sys/vnode.h
|
|
||||||
index 0b857d3..ad7f8f4 100644
|
|
||||||
--- a/include/sys/vnode.h
|
|
||||||
+++ b/include/sys/vnode.h
|
|
||||||
@@ -177,8 +177,6 @@ extern int vn_rdwr(uio_rw_t uio, vnode_t *vp, void *addr, ssize_t len,
|
|
||||||
extern int vn_close(vnode_t *vp, int flags, int x1, int x2, void *x3, void *x4);
|
|
||||||
extern int vn_seek(vnode_t *vp, offset_t o, offset_t *op, void *ct);
|
|
||||||
|
|
||||||
-extern int vn_remove(const char *path, uio_seg_t seg, int flags);
|
|
||||||
-extern int vn_rename(const char *path1, const char *path2, int x1);
|
|
||||||
extern int vn_getattr(vnode_t *vp, vattr_t *vap, int flags, void *x3, void *x4);
|
|
||||||
extern int vn_fsync(vnode_t *vp, int flags, void *x3, void *x4);
|
|
||||||
extern int vn_space(vnode_t *vp, int cmd, struct flock *bfp, int flag,
|
|
||||||
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
|
|
||||||
index ca19d73..77bfb45 100644
|
|
||||||
--- a/module/spl/spl-vnode.c
|
|
||||||
+++ b/module/spl/spl-vnode.c
|
|
||||||
@@ -269,223 +269,6 @@ vn_seek(vnode_t *vp, offset_t ooff, offset_t *noffp, void *ct)
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(vn_seek);
|
|
||||||
|
|
||||||
-/*
|
|
||||||
- * spl_basename() takes a NULL-terminated string s as input containing a path.
|
|
||||||
- * It returns a char pointer to a string and a length that describe the
|
|
||||||
- * basename of the path. If the basename is not "." or "/", it will be an index
|
|
||||||
- * into the string. While the string should be NULL terminated, the section
|
|
||||||
- * referring to the basename is not. spl_basename is dual-licensed GPLv2+ and
|
|
||||||
- * CC0. Anyone wishing to reuse it in another codebase may pick either license.
|
|
||||||
- */
|
|
||||||
-static void
|
|
||||||
-spl_basename(const char *s, const char **str, int *len)
|
|
||||||
-{
|
|
||||||
- size_t i, end;
|
|
||||||
-
|
|
||||||
- ASSERT(str);
|
|
||||||
- ASSERT(len);
|
|
||||||
-
|
|
||||||
- if (!s || !*s) {
|
|
||||||
- *str = ".";
|
|
||||||
- *len = 1;
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- i = strlen(s) - 1;
|
|
||||||
-
|
|
||||||
- while (i && s[i--] == '/');
|
|
||||||
-
|
|
||||||
- if (i == 0) {
|
|
||||||
- *str = "/";
|
|
||||||
- *len = 1;
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- end = i;
|
|
||||||
-
|
|
||||||
- for (end = i; i; i--) {
|
|
||||||
- if (s[i] == '/') {
|
|
||||||
- *str = &s[i+1];
|
|
||||||
- *len = end - i + 1;
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- *str = s;
|
|
||||||
- *len = end + 1;
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-static struct dentry *
|
|
||||||
-spl_kern_path_locked(const char *name, struct path *path)
|
|
||||||
-{
|
|
||||||
- struct path parent;
|
|
||||||
- struct dentry *dentry;
|
|
||||||
- const char *basename;
|
|
||||||
- int len;
|
|
||||||
- int rc;
|
|
||||||
-
|
|
||||||
- ASSERT(name);
|
|
||||||
- ASSERT(path);
|
|
||||||
-
|
|
||||||
- spl_basename(name, &basename, &len);
|
|
||||||
-
|
|
||||||
- /* We do not accept "." or ".." */
|
|
||||||
- if (len <= 2 && basename[0] == '.')
|
|
||||||
- if (len == 1 || basename[1] == '.')
|
|
||||||
- return (ERR_PTR(-EACCES));
|
|
||||||
-
|
|
||||||
- rc = kern_path(name, LOOKUP_PARENT, &parent);
|
|
||||||
- if (rc)
|
|
||||||
- return (ERR_PTR(rc));
|
|
||||||
-
|
|
||||||
- /* use I_MUTEX_PARENT because vfs_unlink needs it */
|
|
||||||
- spl_inode_lock_nested(parent.dentry->d_inode, I_MUTEX_PARENT);
|
|
||||||
-
|
|
||||||
- dentry = lookup_one_len(basename, parent.dentry, len);
|
|
||||||
- if (IS_ERR(dentry)) {
|
|
||||||
- spl_inode_unlock(parent.dentry->d_inode);
|
|
||||||
- path_put(&parent);
|
|
||||||
- } else {
|
|
||||||
- *path = parent;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- return (dentry);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-/* Based on do_unlinkat() from linux/fs/namei.c */
|
|
||||||
-int
|
|
||||||
-vn_remove(const char *path, uio_seg_t seg, int flags)
|
|
||||||
-{
|
|
||||||
- struct dentry *dentry;
|
|
||||||
- struct path parent;
|
|
||||||
- struct inode *inode = NULL;
|
|
||||||
- int rc = 0;
|
|
||||||
-
|
|
||||||
- ASSERT(seg == UIO_SYSSPACE);
|
|
||||||
- ASSERT(flags == RMFILE);
|
|
||||||
-
|
|
||||||
- dentry = spl_kern_path_locked(path, &parent);
|
|
||||||
- rc = PTR_ERR(dentry);
|
|
||||||
- if (!IS_ERR(dentry)) {
|
|
||||||
- if (parent.dentry->d_name.name[parent.dentry->d_name.len]) {
|
|
||||||
- rc = 0;
|
|
||||||
- goto slashes;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- inode = dentry->d_inode;
|
|
||||||
- if (inode) {
|
|
||||||
- atomic_inc(&inode->i_count);
|
|
||||||
- } else {
|
|
||||||
- rc = 0;
|
|
||||||
- goto slashes;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
-#ifdef HAVE_2ARGS_VFS_UNLINK
|
|
||||||
- rc = vfs_unlink(parent.dentry->d_inode, dentry);
|
|
||||||
-#else
|
|
||||||
- rc = vfs_unlink(parent.dentry->d_inode, dentry, NULL);
|
|
||||||
-#endif /* HAVE_2ARGS_VFS_UNLINK */
|
|
||||||
-exit1:
|
|
||||||
- dput(dentry);
|
|
||||||
- } else {
|
|
||||||
- return (-rc);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- spl_inode_unlock(parent.dentry->d_inode);
|
|
||||||
- if (inode)
|
|
||||||
- iput(inode); /* truncate the inode here */
|
|
||||||
-
|
|
||||||
- path_put(&parent);
|
|
||||||
- return (-rc);
|
|
||||||
-
|
|
||||||
-slashes:
|
|
||||||
- rc = !dentry->d_inode ? -ENOENT :
|
|
||||||
- S_ISDIR(dentry->d_inode->i_mode) ? -EISDIR : -ENOTDIR;
|
|
||||||
- goto exit1;
|
|
||||||
-} /* vn_remove() */
|
|
||||||
-EXPORT_SYMBOL(vn_remove);
|
|
||||||
-
|
|
||||||
-/* Based on do_rename() from linux/fs/namei.c */
|
|
||||||
-int
|
|
||||||
-vn_rename(const char *oldname, const char *newname, int x1)
|
|
||||||
-{
|
|
||||||
- struct dentry *old_dir, *new_dir;
|
|
||||||
- struct dentry *old_dentry, *new_dentry;
|
|
||||||
- struct dentry *trap;
|
|
||||||
- struct path old_parent, new_parent;
|
|
||||||
- int rc = 0;
|
|
||||||
-
|
|
||||||
- old_dentry = spl_kern_path_locked(oldname, &old_parent);
|
|
||||||
- if (IS_ERR(old_dentry)) {
|
|
||||||
- rc = PTR_ERR(old_dentry);
|
|
||||||
- goto exit;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- spl_inode_unlock(old_parent.dentry->d_inode);
|
|
||||||
-
|
|
||||||
- new_dentry = spl_kern_path_locked(newname, &new_parent);
|
|
||||||
- if (IS_ERR(new_dentry)) {
|
|
||||||
- rc = PTR_ERR(new_dentry);
|
|
||||||
- goto exit2;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- spl_inode_unlock(new_parent.dentry->d_inode);
|
|
||||||
-
|
|
||||||
- rc = -EXDEV;
|
|
||||||
- if (old_parent.mnt != new_parent.mnt)
|
|
||||||
- goto exit3;
|
|
||||||
-
|
|
||||||
- old_dir = old_parent.dentry;
|
|
||||||
- new_dir = new_parent.dentry;
|
|
||||||
- trap = lock_rename(new_dir, old_dir);
|
|
||||||
-
|
|
||||||
- /* source should not be ancestor of target */
|
|
||||||
- rc = -EINVAL;
|
|
||||||
- if (old_dentry == trap)
|
|
||||||
- goto exit4;
|
|
||||||
-
|
|
||||||
- /* target should not be an ancestor of source */
|
|
||||||
- rc = -ENOTEMPTY;
|
|
||||||
- if (new_dentry == trap)
|
|
||||||
- goto exit4;
|
|
||||||
-
|
|
||||||
- /* source must exist */
|
|
||||||
- rc = -ENOENT;
|
|
||||||
- if (!old_dentry->d_inode)
|
|
||||||
- goto exit4;
|
|
||||||
-
|
|
||||||
- /* unless the source is a directory trailing slashes give -ENOTDIR */
|
|
||||||
- if (!S_ISDIR(old_dentry->d_inode->i_mode)) {
|
|
||||||
- rc = -ENOTDIR;
|
|
||||||
- if (old_dentry->d_name.name[old_dentry->d_name.len])
|
|
||||||
- goto exit4;
|
|
||||||
- if (new_dentry->d_name.name[new_dentry->d_name.len])
|
|
||||||
- goto exit4;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
-#if defined(HAVE_4ARGS_VFS_RENAME)
|
|
||||||
- rc = vfs_rename(old_dir->d_inode, old_dentry,
|
|
||||||
- new_dir->d_inode, new_dentry);
|
|
||||||
-#elif defined(HAVE_5ARGS_VFS_RENAME)
|
|
||||||
- rc = vfs_rename(old_dir->d_inode, old_dentry,
|
|
||||||
- new_dir->d_inode, new_dentry, NULL);
|
|
||||||
-#else
|
|
||||||
- rc = vfs_rename(old_dir->d_inode, old_dentry,
|
|
||||||
- new_dir->d_inode, new_dentry, NULL, 0);
|
|
||||||
-#endif
|
|
||||||
-exit4:
|
|
||||||
- unlock_rename(new_dir, old_dir);
|
|
||||||
-exit3:
|
|
||||||
- dput(new_dentry);
|
|
||||||
- path_put(&new_parent);
|
|
||||||
-exit2:
|
|
||||||
- dput(old_dentry);
|
|
||||||
- path_put(&old_parent);
|
|
||||||
-exit:
|
|
||||||
- return (-rc);
|
|
||||||
-}
|
|
||||||
-EXPORT_SYMBOL(vn_rename);
|
|
||||||
-
|
|
||||||
int
|
|
||||||
vn_getattr(vnode_t *vp, vattr_t *vap, int flags, void *x3, void *x4)
|
|
||||||
{
|
|
||||||
diff --git a/module/splat/splat-vnode.c b/module/splat/splat-vnode.c
|
|
||||||
index ad69cf6..9160003 100644
|
|
||||||
--- a/module/splat/splat-vnode.c
|
|
||||||
+++ b/module/splat/splat-vnode.c
|
|
||||||
@@ -42,10 +42,6 @@
|
|
||||||
#define SPLAT_VNODE_TEST3_NAME "vn_rdwr"
|
|
||||||
#define SPLAT_VNODE_TEST3_DESC "Vn_rdwrt Test"
|
|
||||||
|
|
||||||
-#define SPLAT_VNODE_TEST4_ID 0x0904
|
|
||||||
-#define SPLAT_VNODE_TEST4_NAME "vn_rename"
|
|
||||||
-#define SPLAT_VNODE_TEST4_DESC "Vn_rename Test"
|
|
||||||
-
|
|
||||||
#define SPLAT_VNODE_TEST5_ID 0x0905
|
|
||||||
#define SPLAT_VNODE_TEST5_NAME "vn_getattr"
|
|
||||||
#define SPLAT_VNODE_TEST5_DESC "Vn_getattr Test"
|
|
||||||
@@ -218,94 +214,10 @@ splat_vnode_test3(struct file *file, void *arg)
|
|
||||||
|
|
||||||
out:
|
|
||||||
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
|
|
||||||
- vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
|
|
||||||
|
|
||||||
return -rc;
|
|
||||||
} /* splat_vnode_test3() */
|
|
||||||
|
|
||||||
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,1,0)
|
|
||||||
-static int
|
|
||||||
-splat_vnode_test4(struct file *file, void *arg)
|
|
||||||
-{
|
|
||||||
- vnode_t *vp;
|
|
||||||
- char buf1[32] = "SPL VNode Interface Test File\n";
|
|
||||||
- char buf2[32] = "";
|
|
||||||
- int rc;
|
|
||||||
-
|
|
||||||
- if ((rc = splat_vnode_unlink_all(file, arg, SPLAT_VNODE_TEST4_NAME)))
|
|
||||||
- return rc;
|
|
||||||
-
|
|
||||||
- if ((rc = vn_open(SPLAT_VNODE_TEST_FILE_RW1, UIO_SYSSPACE,
|
|
||||||
- FWRITE | FREAD | FCREAT | FEXCL, 0644, &vp, 0, 0))) {
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME,
|
|
||||||
- "Failed to vn_open test file: %s (%d)\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW1, rc);
|
|
||||||
- goto out;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- rc = vn_rdwr(UIO_WRITE, vp, buf1, strlen(buf1), 0,
|
|
||||||
- UIO_SYSSPACE, 0, RLIM64_INFINITY, 0, NULL);
|
|
||||||
- if (rc) {
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME,
|
|
||||||
- "Failed vn_rdwr write of test file: %s (%d)\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW1, rc);
|
|
||||||
- goto out2;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- VOP_CLOSE(vp, 0, 0, 0, 0, 0);
|
|
||||||
-
|
|
||||||
- rc = vn_rename(SPLAT_VNODE_TEST_FILE_RW1,SPLAT_VNODE_TEST_FILE_RW2,0);
|
|
||||||
- if (rc) {
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME, "Failed vn_rename "
|
|
||||||
- "%s -> %s (%d)\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW1,
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW2, rc);
|
|
||||||
- goto out;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- if ((rc = vn_open(SPLAT_VNODE_TEST_FILE_RW2, UIO_SYSSPACE,
|
|
||||||
- FREAD | FEXCL, 0644, &vp, 0, 0))) {
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME,
|
|
||||||
- "Failed to vn_open test file: %s (%d)\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW2, rc);
|
|
||||||
- goto out;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- rc = vn_rdwr(UIO_READ, vp, buf2, strlen(buf1), 0,
|
|
||||||
- UIO_SYSSPACE, 0, RLIM64_INFINITY, 0, NULL);
|
|
||||||
- if (rc) {
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME,
|
|
||||||
- "Failed vn_rdwr read of test file: %s (%d)\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW2, rc);
|
|
||||||
- goto out2;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- if (strncmp(buf1, buf2, strlen(buf1))) {
|
|
||||||
- rc = EINVAL;
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME,
|
|
||||||
- "Failed strncmp data written does not match "
|
|
||||||
- "data read\nWrote: %sRead: %s\n", buf1, buf2);
|
|
||||||
- goto out2;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- rc = 0;
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME, "Wrote to %s: %s",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW1, buf1);
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME, "Read from %s: %s",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW2, buf2);
|
|
||||||
- splat_vprint(file, SPLAT_VNODE_TEST4_NAME, "Successfully renamed "
|
|
||||||
- "test file %s -> %s and verified data pattern\n",
|
|
||||||
- SPLAT_VNODE_TEST_FILE_RW1, SPLAT_VNODE_TEST_FILE_RW2);
|
|
||||||
-out2:
|
|
||||||
- VOP_CLOSE(vp, 0, 0, 0, 0, 0);
|
|
||||||
-out:
|
|
||||||
- vn_remove(SPLAT_VNODE_TEST_FILE_RW1, UIO_SYSSPACE, RMFILE);
|
|
||||||
- vn_remove(SPLAT_VNODE_TEST_FILE_RW2, UIO_SYSSPACE, RMFILE);
|
|
||||||
-
|
|
||||||
- return -rc;
|
|
||||||
-} /* splat_vnode_test4() */
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
static int
|
|
||||||
splat_vnode_test5(struct file *file, void *arg)
|
|
||||||
{
|
|
||||||
@@ -387,7 +299,6 @@ splat_vnode_test6(struct file *file, void *arg)
|
|
||||||
"fsync'ed test file %s\n", SPLAT_VNODE_TEST_FILE_RW);
|
|
||||||
out:
|
|
||||||
VOP_CLOSE(vp, 0, 0, 0, 0, 0);
|
|
||||||
- vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
|
|
||||||
|
|
||||||
return -rc;
|
|
||||||
} /* splat_vnode_test6() */
|
|
||||||
@@ -415,10 +326,6 @@ splat_vnode_init(void)
|
|
||||||
SPLAT_VNODE_TEST2_ID, splat_vnode_test2);
|
|
||||||
splat_test_init(sub, SPLAT_VNODE_TEST3_NAME, SPLAT_VNODE_TEST3_DESC,
|
|
||||||
SPLAT_VNODE_TEST3_ID, splat_vnode_test3);
|
|
||||||
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,1,0)
|
|
||||||
- splat_test_init(sub, SPLAT_VNODE_TEST4_NAME, SPLAT_VNODE_TEST4_DESC,
|
|
||||||
- SPLAT_VNODE_TEST4_ID, splat_vnode_test4);
|
|
||||||
-#endif
|
|
||||||
splat_test_init(sub, SPLAT_VNODE_TEST5_NAME, SPLAT_VNODE_TEST5_DESC,
|
|
||||||
SPLAT_VNODE_TEST5_ID, splat_vnode_test5);
|
|
||||||
splat_test_init(sub, SPLAT_VNODE_TEST6_NAME, SPLAT_VNODE_TEST6_DESC,
|
|
||||||
@@ -434,9 +341,6 @@ splat_vnode_fini(splat_subsystem_t *sub)
|
|
||||||
|
|
||||||
splat_test_fini(sub, SPLAT_VNODE_TEST6_ID);
|
|
||||||
splat_test_fini(sub, SPLAT_VNODE_TEST5_ID);
|
|
||||||
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,1,0)
|
|
||||||
- splat_test_fini(sub, SPLAT_VNODE_TEST4_ID);
|
|
||||||
-#endif
|
|
||||||
splat_test_fini(sub, SPLAT_VNODE_TEST3_ID);
|
|
||||||
splat_test_fini(sub, SPLAT_VNODE_TEST2_ID);
|
|
||||||
splat_test_fini(sub, SPLAT_VNODE_TEST1_ID);
|
|
||||||
diff --git a/config/spl-build.m4 b/config/spl-build.m4
|
|
||||||
index 25013b5..926abd5 100644
|
|
||||||
--- a/config/spl-build.m4
|
|
||||||
+++ b/config/spl-build.m4
|
|
||||||
@@ -27,8 +27,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
|
|
||||||
SPL_AC_CONFIG_TRIM_UNUSED_KSYMS
|
|
||||||
SPL_AC_PDE_DATA
|
|
||||||
SPL_AC_SET_FS_PWD_WITH_CONST
|
|
||||||
- SPL_AC_2ARGS_VFS_UNLINK
|
|
||||||
- SPL_AC_4ARGS_VFS_RENAME
|
|
||||||
SPL_AC_2ARGS_VFS_FSYNC
|
|
||||||
SPL_AC_INODE_TRUNCATE_RANGE
|
|
||||||
SPL_AC_FS_STRUCT_SPINLOCK
|
|
||||||
@@ -936,105 +934,6 @@ AC_DEFUN([SPL_AC_SET_FS_PWD_WITH_CONST],
|
|
||||||
EXTRA_KCFLAGS="$tmp_flags"
|
|
||||||
])
|
|
||||||
|
|
||||||
-dnl #
|
|
||||||
-dnl # 3.13 API change
|
|
||||||
-dnl # vfs_unlink() updated to take a third delegated_inode argument.
|
|
||||||
-dnl #
|
|
||||||
-AC_DEFUN([SPL_AC_2ARGS_VFS_UNLINK],
|
|
||||||
- [AC_MSG_CHECKING([whether vfs_unlink() wants 2 args])
|
|
||||||
- SPL_LINUX_TRY_COMPILE([
|
|
||||||
- #include <linux/fs.h>
|
|
||||||
- ],[
|
|
||||||
- vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(yes)
|
|
||||||
- AC_DEFINE(HAVE_2ARGS_VFS_UNLINK, 1,
|
|
||||||
- [vfs_unlink() wants 2 args])
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(no)
|
|
||||||
- dnl #
|
|
||||||
- dnl # Linux 3.13 API change
|
|
||||||
- dnl # Added delegated inode
|
|
||||||
- dnl #
|
|
||||||
- AC_MSG_CHECKING([whether vfs_unlink() wants 3 args])
|
|
||||||
- SPL_LINUX_TRY_COMPILE([
|
|
||||||
- #include <linux/fs.h>
|
|
||||||
- ],[
|
|
||||||
- vfs_unlink((struct inode *) NULL,
|
|
||||||
- (struct dentry *) NULL,
|
|
||||||
- (struct inode **) NULL);
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(yes)
|
|
||||||
- AC_DEFINE(HAVE_3ARGS_VFS_UNLINK, 1,
|
|
||||||
- [vfs_unlink() wants 3 args])
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_ERROR(no)
|
|
||||||
- ])
|
|
||||||
-
|
|
||||||
- ])
|
|
||||||
-])
|
|
||||||
-
|
|
||||||
-dnl #
|
|
||||||
-dnl # 3.13 and 3.15 API changes
|
|
||||||
-dnl # Added delegated inode and flags argument.
|
|
||||||
-dnl #
|
|
||||||
-AC_DEFUN([SPL_AC_4ARGS_VFS_RENAME],
|
|
||||||
- [AC_MSG_CHECKING([whether vfs_rename() wants 4 args])
|
|
||||||
- SPL_LINUX_TRY_COMPILE([
|
|
||||||
- #include <linux/fs.h>
|
|
||||||
- ],[
|
|
||||||
- vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
|
|
||||||
- (struct inode *) NULL, (struct dentry *) NULL);
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(yes)
|
|
||||||
- AC_DEFINE(HAVE_4ARGS_VFS_RENAME, 1,
|
|
||||||
- [vfs_rename() wants 4 args])
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(no)
|
|
||||||
- dnl #
|
|
||||||
- dnl # Linux 3.13 API change
|
|
||||||
- dnl # Added delegated inode
|
|
||||||
- dnl #
|
|
||||||
- AC_MSG_CHECKING([whether vfs_rename() wants 5 args])
|
|
||||||
- SPL_LINUX_TRY_COMPILE([
|
|
||||||
- #include <linux/fs.h>
|
|
||||||
- ],[
|
|
||||||
- vfs_rename((struct inode *) NULL,
|
|
||||||
- (struct dentry *) NULL,
|
|
||||||
- (struct inode *) NULL,
|
|
||||||
- (struct dentry *) NULL,
|
|
||||||
- (struct inode **) NULL);
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(yes)
|
|
||||||
- AC_DEFINE(HAVE_5ARGS_VFS_RENAME, 1,
|
|
||||||
- [vfs_rename() wants 5 args])
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(no)
|
|
||||||
- dnl #
|
|
||||||
- dnl # Linux 3.15 API change
|
|
||||||
- dnl # Added flags
|
|
||||||
- dnl #
|
|
||||||
- AC_MSG_CHECKING([whether vfs_rename() wants 6 args])
|
|
||||||
- SPL_LINUX_TRY_COMPILE([
|
|
||||||
- #include <linux/fs.h>
|
|
||||||
- ],[
|
|
||||||
- vfs_rename((struct inode *) NULL,
|
|
||||||
- (struct dentry *) NULL,
|
|
||||||
- (struct inode *) NULL,
|
|
||||||
- (struct dentry *) NULL,
|
|
||||||
- (struct inode **) NULL,
|
|
||||||
- (unsigned int) 0);
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_RESULT(yes)
|
|
||||||
- AC_DEFINE(HAVE_6ARGS_VFS_RENAME, 1,
|
|
||||||
- [vfs_rename() wants 6 args])
|
|
||||||
- ],[
|
|
||||||
- AC_MSG_ERROR(no)
|
|
||||||
- ])
|
|
||||||
- ])
|
|
||||||
- ])
|
|
||||||
-])
|
|
||||||
-
|
|
||||||
dnl #
|
|
||||||
dnl # 2.6.36 API change,
|
|
||||||
dnl # The 'struct fs_struct->lock' was changed from a rwlock_t to
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,169 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: James Cowgill <jcowgill@users.noreply.github.com>
|
|
||||||
Date: Mon, 30 Oct 2017 18:16:56 +0000
|
|
||||||
Subject: [PATCH] Remove all spin_is_locked calls
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
On systems with CONFIG_SMP turned off, spin_is_locked always returns
|
|
||||||
false causing these assertions to fail. Remove them as suggested in
|
|
||||||
zfsonlinux/zfs#6558.
|
|
||||||
|
|
||||||
Reviewed-by: George Melikov <mail@gmelikov.ru>
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: James Cowgill <james.cowgill@mips.com>
|
|
||||||
Closes #665
|
|
||||||
(cherry picked from commit 9e573b7f9a5cf3e1cb6bb1b66bc35d5bb93cfaa9)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/spl/spl-kmem-cache.c | 4 ----
|
|
||||||
module/spl/spl-taskq.c | 13 -------------
|
|
||||||
module/spl/spl-tsd.c | 1 -
|
|
||||||
module/spl/spl-vnode.c | 2 --
|
|
||||||
4 files changed, 20 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-kmem-cache.c b/module/spl/spl-kmem-cache.c
|
|
||||||
index 45576b9..3668669 100644
|
|
||||||
--- a/module/spl/spl-kmem-cache.c
|
|
||||||
+++ b/module/spl/spl-kmem-cache.c
|
|
||||||
@@ -382,7 +382,6 @@ spl_slab_free(spl_kmem_slab_t *sks,
|
|
||||||
|
|
||||||
skc = sks->sks_cache;
|
|
||||||
ASSERT(skc->skc_magic == SKC_MAGIC);
|
|
||||||
- ASSERT(spin_is_locked(&skc->skc_lock));
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Update slab/objects counters in the cache, then remove the
|
|
||||||
@@ -583,7 +582,6 @@ __spl_cache_flush(spl_kmem_cache_t *skc, spl_kmem_magazine_t *skm, int flush)
|
|
||||||
|
|
||||||
ASSERT(skc->skc_magic == SKC_MAGIC);
|
|
||||||
ASSERT(skm->skm_magic == SKM_MAGIC);
|
|
||||||
- ASSERT(spin_is_locked(&skc->skc_lock));
|
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
|
||||||
spl_cache_shrink(skc, skm->skm_objs[i]);
|
|
||||||
@@ -1125,7 +1123,6 @@ spl_cache_obj(spl_kmem_cache_t *skc, spl_kmem_slab_t *sks)
|
|
||||||
|
|
||||||
ASSERT(skc->skc_magic == SKC_MAGIC);
|
|
||||||
ASSERT(sks->sks_magic == SKS_MAGIC);
|
|
||||||
- ASSERT(spin_is_locked(&skc->skc_lock));
|
|
||||||
|
|
||||||
sko = list_entry(sks->sks_free_list.next, spl_kmem_obj_t, sko_list);
|
|
||||||
ASSERT(sko->sko_magic == SKO_MAGIC);
|
|
||||||
@@ -1396,7 +1393,6 @@ spl_cache_shrink(spl_kmem_cache_t *skc, void *obj)
|
|
||||||
spl_kmem_obj_t *sko = NULL;
|
|
||||||
|
|
||||||
ASSERT(skc->skc_magic == SKC_MAGIC);
|
|
||||||
- ASSERT(spin_is_locked(&skc->skc_lock));
|
|
||||||
|
|
||||||
sko = spl_sko_from_obj(skc, obj);
|
|
||||||
ASSERT(sko->sko_magic == SKO_MAGIC);
|
|
||||||
diff --git a/module/spl/spl-taskq.c b/module/spl/spl-taskq.c
|
|
||||||
index 89c53a5..ae26bdb 100644
|
|
||||||
--- a/module/spl/spl-taskq.c
|
|
||||||
+++ b/module/spl/spl-taskq.c
|
|
||||||
@@ -103,7 +103,6 @@ task_alloc(taskq_t *tq, uint_t flags, unsigned long *irqflags)
|
|
||||||
int count = 0;
|
|
||||||
|
|
||||||
ASSERT(tq);
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
retry:
|
|
||||||
/* Acquire taskq_ent_t's from free list if available */
|
|
||||||
if (!list_empty(&tq->tq_free_list) && !(flags & TQ_NEW)) {
|
|
||||||
@@ -168,7 +167,6 @@ task_free(taskq_t *tq, taskq_ent_t *t)
|
|
||||||
{
|
|
||||||
ASSERT(tq);
|
|
||||||
ASSERT(t);
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
ASSERT(list_empty(&t->tqent_list));
|
|
||||||
ASSERT(!timer_pending(&t->tqent_timer));
|
|
||||||
|
|
||||||
@@ -185,7 +183,6 @@ task_done(taskq_t *tq, taskq_ent_t *t)
|
|
||||||
{
|
|
||||||
ASSERT(tq);
|
|
||||||
ASSERT(t);
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
|
|
||||||
/* Wake tasks blocked in taskq_wait_id() */
|
|
||||||
wake_up_all(&t->tqent_waitq);
|
|
||||||
@@ -274,7 +271,6 @@ taskq_lowest_id(taskq_t *tq)
|
|
||||||
taskq_thread_t *tqt;
|
|
||||||
|
|
||||||
ASSERT(tq);
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
|
|
||||||
if (!list_empty(&tq->tq_pend_list)) {
|
|
||||||
t = list_entry(tq->tq_pend_list.next, taskq_ent_t, tqent_list);
|
|
||||||
@@ -312,7 +308,6 @@ taskq_insert_in_order(taskq_t *tq, taskq_thread_t *tqt)
|
|
||||||
|
|
||||||
ASSERT(tq);
|
|
||||||
ASSERT(tqt);
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
|
|
||||||
list_for_each_prev(l, &tq->tq_active_list) {
|
|
||||||
w = list_entry(l, taskq_thread_t, tqt_active_list);
|
|
||||||
@@ -335,8 +330,6 @@ taskq_find_list(taskq_t *tq, struct list_head *lh, taskqid_t id)
|
|
||||||
struct list_head *l;
|
|
||||||
taskq_ent_t *t;
|
|
||||||
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
-
|
|
||||||
list_for_each(l, lh) {
|
|
||||||
t = list_entry(l, taskq_ent_t, tqent_list);
|
|
||||||
|
|
||||||
@@ -363,8 +356,6 @@ taskq_find(taskq_t *tq, taskqid_t id)
|
|
||||||
struct list_head *l;
|
|
||||||
taskq_ent_t *t;
|
|
||||||
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
-
|
|
||||||
t = taskq_find_list(tq, &tq->tq_delay_list, id);
|
|
||||||
if (t)
|
|
||||||
return (t);
|
|
||||||
@@ -774,8 +765,6 @@ taskq_next_ent(taskq_t *tq)
|
|
||||||
{
|
|
||||||
struct list_head *list;
|
|
||||||
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
-
|
|
||||||
if (!list_empty(&tq->tq_prio_list))
|
|
||||||
list = &tq->tq_prio_list;
|
|
||||||
else if (!list_empty(&tq->tq_pend_list))
|
|
||||||
@@ -840,8 +829,6 @@ taskq_thread_spawn(taskq_t *tq)
|
|
||||||
static int
|
|
||||||
taskq_thread_should_stop(taskq_t *tq, taskq_thread_t *tqt)
|
|
||||||
{
|
|
||||||
- ASSERT(spin_is_locked(&tq->tq_lock));
|
|
||||||
-
|
|
||||||
if (!(tq->tq_flags & TASKQ_DYNAMIC))
|
|
||||||
return (0);
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-tsd.c b/module/spl/spl-tsd.c
|
|
||||||
index bf82350..4c80029 100644
|
|
||||||
--- a/module/spl/spl-tsd.c
|
|
||||||
+++ b/module/spl/spl-tsd.c
|
|
||||||
@@ -315,7 +315,6 @@ tsd_hash_add_pid(tsd_hash_table_t *table, pid_t pid)
|
|
||||||
static void
|
|
||||||
tsd_hash_del(tsd_hash_table_t *table, tsd_hash_entry_t *entry)
|
|
||||||
{
|
|
||||||
- ASSERT(spin_is_locked(&table->ht_lock));
|
|
||||||
hlist_del(&entry->he_list);
|
|
||||||
list_del_init(&entry->he_key_list);
|
|
||||||
list_del_init(&entry->he_pid_list);
|
|
||||||
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
|
|
||||||
index 77bfb45..a804e10 100644
|
|
||||||
--- a/module/spl/spl-vnode.c
|
|
||||||
+++ b/module/spl/spl-vnode.c
|
|
||||||
@@ -414,8 +414,6 @@ file_find(int fd, struct task_struct *task)
|
|
||||||
{
|
|
||||||
file_t *fp;
|
|
||||||
|
|
||||||
- ASSERT(spin_is_locked(&vn_file_lock));
|
|
||||||
-
|
|
||||||
list_for_each_entry(fp, &vn_file_list, f_list) {
|
|
||||||
if (fd == fp->f_fd && fp->f_task == task) {
|
|
||||||
ASSERT(atomic_read(&fp->f_ref) != 0);
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Wed, 24 Jan 2018 11:33:47 -0800
|
|
||||||
Subject: [PATCH] Add cv_timedwait_io()
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Add missing helper function cv_timedwait_io(), it should be used
|
|
||||||
when waiting on IO with a specified timeout.
|
|
||||||
|
|
||||||
Reviewed-by: Tim Chase <tim@chase2k.com>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #674
|
|
||||||
(cherry picked from commit ba003d46e3269ead9128b537f8f31c44bc3a974f)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
include/sys/condvar.h | 2 ++
|
|
||||||
module/spl/spl-condvar.c | 58 +++++++++++++++++++++++++++++++++++++++++-------
|
|
||||||
config/spl-build.m4 | 21 ++++++++++++++++++
|
|
||||||
3 files changed, 73 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/include/sys/condvar.h b/include/sys/condvar.h
|
|
||||||
index 5479e75..5fcc906 100644
|
|
||||||
--- a/include/sys/condvar.h
|
|
||||||
+++ b/include/sys/condvar.h
|
|
||||||
@@ -56,6 +56,7 @@ extern void __cv_wait(kcondvar_t *, kmutex_t *);
|
|
||||||
extern void __cv_wait_io(kcondvar_t *, kmutex_t *);
|
|
||||||
extern void __cv_wait_sig(kcondvar_t *, kmutex_t *);
|
|
||||||
extern clock_t __cv_timedwait(kcondvar_t *, kmutex_t *, clock_t);
|
|
||||||
+extern clock_t __cv_timedwait_io(kcondvar_t *, kmutex_t *, clock_t);
|
|
||||||
extern clock_t __cv_timedwait_sig(kcondvar_t *, kmutex_t *, clock_t);
|
|
||||||
extern clock_t cv_timedwait_hires(kcondvar_t *, kmutex_t *, hrtime_t,
|
|
||||||
hrtime_t res, int flag);
|
|
||||||
@@ -71,6 +72,7 @@ extern void __cv_broadcast(kcondvar_t *c);
|
|
||||||
#define cv_wait_sig(cvp, mp) __cv_wait_sig(cvp, mp)
|
|
||||||
#define cv_wait_interruptible(cvp, mp) cv_wait_sig(cvp, mp)
|
|
||||||
#define cv_timedwait(cvp, mp, t) __cv_timedwait(cvp, mp, t)
|
|
||||||
+#define cv_timedwait_io(cvp, mp, t) __cv_timedwait_io(cvp, mp, t)
|
|
||||||
#define cv_timedwait_sig(cvp, mp, t) __cv_timedwait_sig(cvp, mp, t)
|
|
||||||
#define cv_timedwait_interruptible(cvp, mp, t) cv_timedwait_sig(cvp, mp, t)
|
|
||||||
#define cv_signal(cvp) __cv_signal(cvp)
|
|
||||||
diff --git a/module/spl/spl-condvar.c b/module/spl/spl-condvar.c
|
|
||||||
index 80c2ef0..4778fb2 100644
|
|
||||||
--- a/module/spl/spl-condvar.c
|
|
||||||
+++ b/module/spl/spl-condvar.c
|
|
||||||
@@ -136,6 +136,13 @@ __cv_wait(kcondvar_t *cvp, kmutex_t *mp)
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(__cv_wait);
|
|
||||||
|
|
||||||
+void
|
|
||||||
+__cv_wait_io(kcondvar_t *cvp, kmutex_t *mp)
|
|
||||||
+{
|
|
||||||
+ cv_wait_common(cvp, mp, TASK_UNINTERRUPTIBLE, 1);
|
|
||||||
+}
|
|
||||||
+EXPORT_SYMBOL(__cv_wait_io);
|
|
||||||
+
|
|
||||||
void
|
|
||||||
__cv_wait_sig(kcondvar_t *cvp, kmutex_t *mp)
|
|
||||||
{
|
|
||||||
@@ -143,12 +150,34 @@ __cv_wait_sig(kcondvar_t *cvp, kmutex_t *mp)
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(__cv_wait_sig);
|
|
||||||
|
|
||||||
-void
|
|
||||||
-__cv_wait_io(kcondvar_t *cvp, kmutex_t *mp)
|
|
||||||
+#if defined(HAVE_IO_SCHEDULE_TIMEOUT)
|
|
||||||
+#define spl_io_schedule_timeout(t) io_schedule_timeout(t)
|
|
||||||
+#else
|
|
||||||
+static void
|
|
||||||
+__cv_wakeup(unsigned long data)
|
|
||||||
{
|
|
||||||
- cv_wait_common(cvp, mp, TASK_UNINTERRUPTIBLE, 1);
|
|
||||||
+ wake_up_process((struct task_struct *)data);
|
|
||||||
}
|
|
||||||
-EXPORT_SYMBOL(__cv_wait_io);
|
|
||||||
+
|
|
||||||
+static long
|
|
||||||
+spl_io_schedule_timeout(long time_left)
|
|
||||||
+{
|
|
||||||
+ long expire_time = jiffies + time_left;
|
|
||||||
+ struct timer_list timer;
|
|
||||||
+
|
|
||||||
+ init_timer(&timer);
|
|
||||||
+ setup_timer(&timer, __cv_wakeup, (unsigned long)current);
|
|
||||||
+ timer.expires = expire_time;
|
|
||||||
+ add_timer(&timer);
|
|
||||||
+
|
|
||||||
+ io_schedule();
|
|
||||||
+
|
|
||||||
+ del_timer_sync(&timer);
|
|
||||||
+ time_left = expire_time - jiffies;
|
|
||||||
+
|
|
||||||
+ return (time_left < 0 ? 0 : time_left);
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 'expire_time' argument is an absolute wall clock time in jiffies.
|
|
||||||
@@ -156,7 +185,7 @@ EXPORT_SYMBOL(__cv_wait_io);
|
|
||||||
*/
|
|
||||||
static clock_t
|
|
||||||
__cv_timedwait_common(kcondvar_t *cvp, kmutex_t *mp, clock_t expire_time,
|
|
||||||
- int state)
|
|
||||||
+ int state, int io)
|
|
||||||
{
|
|
||||||
DEFINE_WAIT(wait);
|
|
||||||
kmutex_t *m;
|
|
||||||
@@ -188,7 +217,10 @@ __cv_timedwait_common(kcondvar_t *cvp, kmutex_t *mp, clock_t expire_time,
|
|
||||||
* race where 'cvp->cv_waiters > 0' but the list is empty.
|
|
||||||
*/
|
|
||||||
mutex_exit(mp);
|
|
||||||
- time_left = schedule_timeout(time_left);
|
|
||||||
+ if (io)
|
|
||||||
+ time_left = spl_io_schedule_timeout(time_left);
|
|
||||||
+ else
|
|
||||||
+ time_left = schedule_timeout(time_left);
|
|
||||||
|
|
||||||
/* No more waiters a different mutex could be used */
|
|
||||||
if (atomic_dec_and_test(&cvp->cv_waiters)) {
|
|
||||||
@@ -214,14 +246,24 @@ __cv_timedwait_common(kcondvar_t *cvp, kmutex_t *mp, clock_t expire_time,
|
|
||||||
clock_t
|
|
||||||
__cv_timedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t exp_time)
|
|
||||||
{
|
|
||||||
- return (__cv_timedwait_common(cvp, mp, exp_time, TASK_UNINTERRUPTIBLE));
|
|
||||||
+ return (__cv_timedwait_common(cvp, mp, exp_time,
|
|
||||||
+ TASK_UNINTERRUPTIBLE, 0));
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(__cv_timedwait);
|
|
||||||
|
|
||||||
+clock_t
|
|
||||||
+__cv_timedwait_io(kcondvar_t *cvp, kmutex_t *mp, clock_t exp_time)
|
|
||||||
+{
|
|
||||||
+ return (__cv_timedwait_common(cvp, mp, exp_time,
|
|
||||||
+ TASK_UNINTERRUPTIBLE, 1));
|
|
||||||
+}
|
|
||||||
+EXPORT_SYMBOL(__cv_timedwait_io);
|
|
||||||
+
|
|
||||||
clock_t
|
|
||||||
__cv_timedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t exp_time)
|
|
||||||
{
|
|
||||||
- return (__cv_timedwait_common(cvp, mp, exp_time, TASK_INTERRUPTIBLE));
|
|
||||||
+ return (__cv_timedwait_common(cvp, mp, exp_time,
|
|
||||||
+ TASK_INTERRUPTIBLE, 0));
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(__cv_timedwait_sig);
|
|
||||||
|
|
||||||
diff --git a/config/spl-build.m4 b/config/spl-build.m4
|
|
||||||
index 926abd5..afc8de6 100644
|
|
||||||
--- a/config/spl-build.m4
|
|
||||||
+++ b/config/spl-build.m4
|
|
||||||
@@ -52,6 +52,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
|
|
||||||
SPL_AC_KMEM_CACHE_CREATE_USERCOPY
|
|
||||||
SPL_AC_WAIT_QUEUE_ENTRY_T
|
|
||||||
SPL_AC_WAIT_QUEUE_HEAD_ENTRY
|
|
||||||
+ SPL_AC_IO_SCHEDULE_TIMEOUT
|
|
||||||
SPL_AC_KERNEL_WRITE
|
|
||||||
SPL_AC_KERNEL_READ
|
|
||||||
SPL_AC_KERNEL_TIMER_FUNCTION_TIMER_LIST
|
|
||||||
@@ -1598,6 +1599,26 @@ AC_DEFUN([SPL_AC_WAIT_QUEUE_HEAD_ENTRY], [
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
+dnl #
|
|
||||||
+dnl # 3.19 API change
|
|
||||||
+dnl # The io_schedule_timeout() function is present in all 2.6.32 kernels
|
|
||||||
+dnl # but it was not exported until Linux 3.19. The RHEL 7.x kernels which
|
|
||||||
+dnl # are based on a 3.10 kernel do export this symbol.
|
|
||||||
+dnl #
|
|
||||||
+AC_DEFUN([SPL_AC_IO_SCHEDULE_TIMEOUT], [
|
|
||||||
+ AC_MSG_CHECKING([whether io_schedule_timeout() is available])
|
|
||||||
+ SPL_LINUX_TRY_COMPILE_SYMBOL([
|
|
||||||
+ #include <linux/sched.h>
|
|
||||||
+ ], [
|
|
||||||
+ (void) io_schedule_timeout(1);
|
|
||||||
+ ], [io_schedule_timeout], [], [
|
|
||||||
+ AC_MSG_RESULT(yes)
|
|
||||||
+ AC_DEFINE(HAVE_IO_SCHEDULE_TIMEOUT, 1, [yes])
|
|
||||||
+ ],[
|
|
||||||
+ AC_MSG_RESULT(no)
|
|
||||||
+ ])
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
dnl #
|
|
||||||
dnl # 4.14 API change
|
|
||||||
dnl # kernel_write() which was introduced in 3.9 was updated to take
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,48 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: DeHackEd <DeHackEd@users.noreply.github.com>
|
|
||||||
Date: Wed, 21 Feb 2018 17:54:26 -0500
|
|
||||||
Subject: [PATCH] Fix multiple evaluations of VERIFY() and ASSERT() on failures
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: DHE <git@dehacked.net>
|
|
||||||
Closes #684
|
|
||||||
Closes #685
|
|
||||||
(cherry picked from commit 610988f2dbf0e1c5811e6115d7ff8948b90a660e)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
include/sys/debug.h | 15 +++++++++------
|
|
||||||
1 file changed, 9 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/include/sys/debug.h b/include/sys/debug.h
|
|
||||||
index 6d683c2..b523ea1 100644
|
|
||||||
--- a/include/sys/debug.h
|
|
||||||
+++ b/include/sys/debug.h
|
|
||||||
@@ -63,12 +63,15 @@ void spl_dumpstack(void);
|
|
||||||
spl_panic(__FILE__, __FUNCTION__, __LINE__, \
|
|
||||||
"%s", "VERIFY(" #cond ") failed\n"))
|
|
||||||
|
|
||||||
-#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE, FMT, CAST) \
|
|
||||||
- (void) ((!((TYPE)(LEFT) OP (TYPE)(RIGHT))) && \
|
|
||||||
- spl_panic(__FILE__, __FUNCTION__, __LINE__, \
|
|
||||||
- "VERIFY3(" #LEFT " " #OP " " #RIGHT ") " \
|
|
||||||
- "failed (" FMT " " #OP " " FMT ")\n", \
|
|
||||||
- CAST (LEFT), CAST (RIGHT)))
|
|
||||||
+#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE, FMT, CAST) do { \
|
|
||||||
+ TYPE _verify3_left = (TYPE)(LEFT); \
|
|
||||||
+ TYPE _verify3_right = (TYPE)(RIGHT); \
|
|
||||||
+ if (!(_verify3_left OP _verify3_right)) \
|
|
||||||
+ spl_panic(__FILE__, __FUNCTION__, __LINE__, \
|
|
||||||
+ "VERIFY3(" #LEFT " " #OP " " #RIGHT ") " \
|
|
||||||
+ "failed (" FMT " " #OP " " FMT ")\n", \
|
|
||||||
+ CAST (_verify3_left), CAST (_verify3_right)); \
|
|
||||||
+ } while (0)
|
|
||||||
|
|
||||||
#define VERIFY3B(x,y,z) VERIFY3_IMPL(x, y, z, boolean_t, "%d", (boolean_t))
|
|
||||||
#define VERIFY3S(x,y,z) VERIFY3_IMPL(x, y, z, int64_t, "%lld", (long long))
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
|
|
||||||
Date: Mon, 19 Feb 2018 19:23:53 +0900
|
|
||||||
Subject: [PATCH] Staticize kstat_default_update()
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
This is only used via ->ks_update of `kstat_t *`.
|
|
||||||
This isn't exported nor do headers have its prototype.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
|
|
||||||
Closes #686
|
|
||||||
(cherry picked from commit 76ede57c7d927f34fcb5df30c3e7f2b2254ff5ed)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/spl/spl-kstat.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-kstat.c b/module/spl/spl-kstat.c
|
|
||||||
index d2baa49..e769510 100644
|
|
||||||
--- a/module/spl/spl-kstat.c
|
|
||||||
+++ b/module/spl/spl-kstat.c
|
|
||||||
@@ -327,7 +327,7 @@ restart:
|
|
||||||
return (-rc);
|
|
||||||
}
|
|
||||||
|
|
||||||
-int
|
|
||||||
+static int
|
|
||||||
kstat_default_update(kstat_t *ksp, int rw)
|
|
||||||
{
|
|
||||||
ASSERT(ksp != NULL);
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
|
|
||||||
Date: Mon, 19 Feb 2018 20:40:38 +0900
|
|
||||||
Subject: [PATCH] Fix function name typos
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
vn_init() and vn_fini() had been renamed by 12ff95ff in 2011.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
|
|
||||||
Closes #686
|
|
||||||
(cherry picked from commit cfbcc0d4d74ea3ad279706b63e7a13290d3e130a)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/spl/spl-vnode.c | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
|
|
||||||
index 75d8936..23008af 100644
|
|
||||||
--- a/module/spl/spl-vnode.c
|
|
||||||
+++ b/module/spl/spl-vnode.c
|
|
||||||
@@ -658,7 +658,7 @@ vn_file_cache_constructor(void *buf, void *cdrarg, int kmflags)
|
|
||||||
INIT_LIST_HEAD(&fp->f_list);
|
|
||||||
|
|
||||||
return (0);
|
|
||||||
-} /* file_cache_constructor() */
|
|
||||||
+} /* vn_file_cache_constructor() */
|
|
||||||
|
|
||||||
static void
|
|
||||||
vn_file_cache_destructor(void *buf, void *cdrarg)
|
|
||||||
@@ -680,7 +680,7 @@ spl_vn_init(void)
|
|
||||||
vn_file_cache_destructor, NULL, NULL, NULL, 0);
|
|
||||||
|
|
||||||
return (0);
|
|
||||||
-} /* vn_init() */
|
|
||||||
+} /* spl_vn_init() */
|
|
||||||
|
|
||||||
void
|
|
||||||
spl_vn_fini(void)
|
|
||||||
@@ -703,4 +703,4 @@ spl_vn_fini(void)
|
|
||||||
|
|
||||||
kmem_cache_destroy(vn_file_cache);
|
|
||||||
kmem_cache_destroy(vn_cache);
|
|
||||||
-} /* vn_fini() */
|
|
||||||
+} /* spl_vn_fini() */
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,391 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Sat, 24 Feb 2018 10:05:37 -0800
|
|
||||||
Subject: [PATCH] Fix more cstyle warnings
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
This patch contains no functional changes. It is solely intended
|
|
||||||
to resolve cstyle warnings in order to facilitate moving the spl
|
|
||||||
source code in to the zfs repository.
|
|
||||||
|
|
||||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
|
||||||
Reviewed by: George Melikov <mail@gmelikov.ru>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #687
|
|
||||||
(cherry picked from commit 37a93c61226f3fd76f6f1e67291128a5d2d6d7c1)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/spl/spl-err.c | 5 ++++-
|
|
||||||
module/spl/spl-generic.c | 11 ++++++++---
|
|
||||||
module/spl/spl-kmem-cache.c | 5 ++++-
|
|
||||||
module/spl/spl-kmem.c | 5 ++++-
|
|
||||||
module/spl/spl-kstat.c | 17 ++++++++++-------
|
|
||||||
module/spl/spl-proc.c | 18 ++++++++++--------
|
|
||||||
module/spl/spl-thread.c | 3 +--
|
|
||||||
module/spl/spl-vnode.c | 11 +++++------
|
|
||||||
module/spl/spl-xdr.c | 10 +++++-----
|
|
||||||
9 files changed, 51 insertions(+), 34 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-err.c b/module/spl/spl-err.c
|
|
||||||
index e089de2..adfa555 100644
|
|
||||||
--- a/module/spl/spl-err.c
|
|
||||||
+++ b/module/spl/spl-err.c
|
|
||||||
@@ -34,9 +34,11 @@
|
|
||||||
* analysis and other such goodies.
|
|
||||||
* But we would still default to the current default of not to do that.
|
|
||||||
*/
|
|
||||||
+/* BEGIN CSTYLED */
|
|
||||||
unsigned int spl_panic_halt;
|
|
||||||
module_param(spl_panic_halt, uint, 0644);
|
|
||||||
MODULE_PARM_DESC(spl_panic_halt, "Cause kernel panic on assertion failures");
|
|
||||||
+/* END CSTYLED */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Limit the number of stack traces dumped to not more than 5 every
|
|
||||||
@@ -55,7 +57,8 @@ spl_dumpstack(void)
|
|
||||||
EXPORT_SYMBOL(spl_dumpstack);
|
|
||||||
|
|
||||||
int
|
|
||||||
-spl_panic(const char *file, const char *func, int line, const char *fmt, ...) {
|
|
||||||
+spl_panic(const char *file, const char *func, int line, const char *fmt, ...)
|
|
||||||
+{
|
|
||||||
const char *newfile;
|
|
||||||
char msg[MAXMSGLEN];
|
|
||||||
va_list ap;
|
|
||||||
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
|
|
||||||
index 80fc54c..1098d9a 100644
|
|
||||||
--- a/module/spl/spl-generic.c
|
|
||||||
+++ b/module/spl/spl-generic.c
|
|
||||||
@@ -50,10 +50,12 @@
|
|
||||||
char spl_version[32] = "SPL v" SPL_META_VERSION "-" SPL_META_RELEASE;
|
|
||||||
EXPORT_SYMBOL(spl_version);
|
|
||||||
|
|
||||||
+/* BEGIN CSTYLED */
|
|
||||||
unsigned long spl_hostid = 0;
|
|
||||||
EXPORT_SYMBOL(spl_hostid);
|
|
||||||
module_param(spl_hostid, ulong, 0644);
|
|
||||||
MODULE_PARM_DESC(spl_hostid, "The system hostid.");
|
|
||||||
+/* END CSTYLED */
|
|
||||||
|
|
||||||
proc_t p0;
|
|
||||||
EXPORT_SYMBOL(p0);
|
|
||||||
@@ -98,7 +100,8 @@ static DEFINE_PER_CPU(uint64_t[2], spl_pseudo_entropy);
|
|
||||||
*/
|
|
||||||
|
|
||||||
static inline uint64_t
|
|
||||||
-spl_rand_next(uint64_t *s) {
|
|
||||||
+spl_rand_next(uint64_t *s)
|
|
||||||
+{
|
|
||||||
uint64_t s1 = s[0];
|
|
||||||
const uint64_t s0 = s[1];
|
|
||||||
s[0] = s0;
|
|
||||||
@@ -108,7 +111,8 @@ spl_rand_next(uint64_t *s) {
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
|
||||||
-spl_rand_jump(uint64_t *s) {
|
|
||||||
+spl_rand_jump(uint64_t *s)
|
|
||||||
+{
|
|
||||||
static const uint64_t JUMP[] =
|
|
||||||
{ 0x8a5cd789635d2dff, 0x121fd2155c472f96 };
|
|
||||||
|
|
||||||
@@ -184,7 +188,8 @@ EXPORT_SYMBOL(random_get_pseudo_bytes);
|
|
||||||
* Calculate number of leading of zeros for a 64-bit value.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
-nlz64(uint64_t x) {
|
|
||||||
+nlz64(uint64_t x)
|
|
||||||
+{
|
|
||||||
register int n = 0;
|
|
||||||
|
|
||||||
if (x == 0)
|
|
||||||
diff --git a/module/spl/spl-kmem-cache.c b/module/spl/spl-kmem-cache.c
|
|
||||||
index e4bcdd8..c73a2fd 100644
|
|
||||||
--- a/module/spl/spl-kmem-cache.c
|
|
||||||
+++ b/module/spl/spl-kmem-cache.c
|
|
||||||
@@ -66,6 +66,7 @@
|
|
||||||
* because it has been shown to improve responsiveness on low memory systems.
|
|
||||||
* This policy may be changed by setting KMC_EXPIRE_AGE or KMC_EXPIRE_MEM.
|
|
||||||
*/
|
|
||||||
+/* BEGIN CSTYLED */
|
|
||||||
unsigned int spl_kmem_cache_expire = KMC_EXPIRE_MEM;
|
|
||||||
EXPORT_SYMBOL(spl_kmem_cache_expire);
|
|
||||||
module_param(spl_kmem_cache_expire, uint, 0644);
|
|
||||||
@@ -148,6 +149,7 @@ unsigned int spl_kmem_cache_kmem_threads = 4;
|
|
||||||
module_param(spl_kmem_cache_kmem_threads, uint, 0444);
|
|
||||||
MODULE_PARM_DESC(spl_kmem_cache_kmem_threads,
|
|
||||||
"Number of spl_kmem_cache threads");
|
|
||||||
+/* END CSTYLED */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Slab allocation interfaces
|
|
||||||
@@ -356,8 +358,9 @@ out:
|
|
||||||
if (rc) {
|
|
||||||
if (skc->skc_flags & KMC_OFFSLAB)
|
|
||||||
list_for_each_entry_safe(sko,
|
|
||||||
- n, &sks->sks_free_list, sko_list)
|
|
||||||
+ n, &sks->sks_free_list, sko_list) {
|
|
||||||
kv_free(skc, sko->sko_addr, offslab_size);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
kv_free(skc, base, skc->skc_slab_size);
|
|
||||||
sks = NULL;
|
|
||||||
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c
|
|
||||||
index bf9c6b1..e0d5510 100755
|
|
||||||
--- a/module/spl/spl-kmem.c
|
|
||||||
+++ b/module/spl/spl-kmem.c
|
|
||||||
@@ -44,6 +44,7 @@
|
|
||||||
* allocations are quickly caught. These warnings may be disabled by setting
|
|
||||||
* the threshold to zero.
|
|
||||||
*/
|
|
||||||
+/* BEGIN CSTYLED */
|
|
||||||
unsigned int spl_kmem_alloc_warn = MIN(16 * PAGE_SIZE, 64 * 1024);
|
|
||||||
module_param(spl_kmem_alloc_warn, uint, 0644);
|
|
||||||
MODULE_PARM_DESC(spl_kmem_alloc_warn,
|
|
||||||
@@ -64,6 +65,7 @@ module_param(spl_kmem_alloc_max, uint, 0644);
|
|
||||||
MODULE_PARM_DESC(spl_kmem_alloc_max,
|
|
||||||
"Maximum size in bytes for a kmem_alloc()");
|
|
||||||
EXPORT_SYMBOL(spl_kmem_alloc_max);
|
|
||||||
+/* END CSTYLED */
|
|
||||||
|
|
||||||
int
|
|
||||||
kmem_debugging(void)
|
|
||||||
@@ -520,10 +522,11 @@ spl_kmem_fini_tracking(struct list_head *list, spinlock_t *lock)
|
|
||||||
printk(KERN_WARNING "%-16s %-5s %-16s %s:%s\n", "address",
|
|
||||||
"size", "data", "func", "line");
|
|
||||||
|
|
||||||
- list_for_each_entry(kd, list, kd_list)
|
|
||||||
+ list_for_each_entry(kd, list, kd_list) {
|
|
||||||
printk(KERN_WARNING "%p %-5d %-16s %s:%d\n", kd->kd_addr,
|
|
||||||
(int)kd->kd_size, spl_sprintf_addr(kd, str, 17, 8),
|
|
||||||
kd->kd_func, kd->kd_line);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
spin_unlock_irqrestore(lock, flags);
|
|
||||||
}
|
|
||||||
diff --git a/module/spl/spl-kstat.c b/module/spl/spl-kstat.c
|
|
||||||
index e769510..6970fcc 100644
|
|
||||||
--- a/module/spl/spl-kstat.c
|
|
||||||
+++ b/module/spl/spl-kstat.c
|
|
||||||
@@ -305,7 +305,7 @@ restart:
|
|
||||||
} else {
|
|
||||||
ASSERT(ksp->ks_ndata == 1);
|
|
||||||
rc = kstat_seq_show_raw(f, ksp->ks_data,
|
|
||||||
- ksp->ks_data_size);
|
|
||||||
+ ksp->ks_data_size);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case KSTAT_TYPE_NAMED:
|
|
||||||
@@ -434,9 +434,10 @@ kstat_find_module(char *name)
|
|
||||||
{
|
|
||||||
kstat_module_t *module;
|
|
||||||
|
|
||||||
- list_for_each_entry(module, &kstat_module_list, ksm_module_list)
|
|
||||||
+ list_for_each_entry(module, &kstat_module_list, ksm_module_list) {
|
|
||||||
if (strncmp(name, module->ksm_name, KSTAT_STRLEN) == 0)
|
|
||||||
return (module);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
return (NULL);
|
|
||||||
}
|
|
||||||
@@ -517,9 +518,9 @@ static struct file_operations proc_kstat_operations = {
|
|
||||||
|
|
||||||
void
|
|
||||||
__kstat_set_raw_ops(kstat_t *ksp,
|
|
||||||
- int (*headers)(char *buf, size_t size),
|
|
||||||
- int (*data)(char *buf, size_t size, void *data),
|
|
||||||
- void *(*addr)(kstat_t *ksp, loff_t index))
|
|
||||||
+ int (*headers)(char *buf, size_t size),
|
|
||||||
+ int (*data)(char *buf, size_t size, void *data),
|
|
||||||
+ void *(*addr)(kstat_t *ksp, loff_t index))
|
|
||||||
{
|
|
||||||
ksp->ks_raw_ops.headers = headers;
|
|
||||||
ksp->ks_raw_ops.data = data;
|
|
||||||
@@ -628,11 +629,12 @@ kstat_detect_collision(kstat_t *ksp)
|
|
||||||
|
|
||||||
cp[0] = '\0';
|
|
||||||
if ((module = kstat_find_module(parent)) != NULL) {
|
|
||||||
- list_for_each_entry(tmp, &module->ksm_kstat_list, ks_list)
|
|
||||||
+ list_for_each_entry(tmp, &module->ksm_kstat_list, ks_list) {
|
|
||||||
if (strncmp(tmp->ks_name, cp+1, KSTAT_STRLEN) == 0) {
|
|
||||||
strfree(parent);
|
|
||||||
return (EEXIST);
|
|
||||||
}
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
strfree(parent);
|
|
||||||
@@ -665,9 +667,10 @@ __kstat_install(kstat_t *ksp)
|
|
||||||
* Only one entry by this name per-module, on failure the module
|
|
||||||
* shouldn't be deleted because we know it has at least one entry.
|
|
||||||
*/
|
|
||||||
- list_for_each_entry(tmp, &module->ksm_kstat_list, ks_list)
|
|
||||||
+ list_for_each_entry(tmp, &module->ksm_kstat_list, ks_list) {
|
|
||||||
if (strncmp(tmp->ks_name, ksp->ks_name, KSTAT_STRLEN) == 0)
|
|
||||||
goto out;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
list_add_tail(&ksp->ks_list, &module->ksm_kstat_list);
|
|
||||||
|
|
||||||
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
|
|
||||||
index 60d6bbb..8ce5bbe 100644
|
|
||||||
--- a/module/spl/spl-proc.c
|
|
||||||
+++ b/module/spl/spl-proc.c
|
|
||||||
@@ -85,8 +85,8 @@ proc_copyin_string(char *kbuffer, int kbuffer_size, const char *ubuffer,
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
|
||||||
-proc_copyout_string(char *ubuffer, int ubuffer_size,
|
|
||||||
- const char *kbuffer, char *append)
|
|
||||||
+proc_copyout_string(char *ubuffer, int ubuffer_size, const char *kbuffer,
|
|
||||||
+ char *append)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* NB if 'append' != NULL, it's a single character to append to the
|
|
||||||
@@ -239,9 +239,11 @@ taskq_seq_show_headers(struct seq_file *f)
|
|
||||||
#define LHEAD_ACTIVE 4
|
|
||||||
#define LHEAD_SIZE 5
|
|
||||||
|
|
||||||
+/* BEGIN CSTYLED */
|
|
||||||
static unsigned int spl_max_show_tasks = 512;
|
|
||||||
module_param(spl_max_show_tasks, uint, 0644);
|
|
||||||
MODULE_PARM_DESC(spl_max_show_tasks, "Max number of tasks shown in taskq proc");
|
|
||||||
+/* END CSTYLED */
|
|
||||||
|
|
||||||
static int
|
|
||||||
taskq_seq_show_impl(struct seq_file *f, void *p, boolean_t allflag)
|
|
||||||
@@ -719,15 +721,15 @@ spl_proc_init(void)
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
- proc_spl_taskq_all = proc_create_data("taskq-all", 0444,
|
|
||||||
- proc_spl, &proc_taskq_all_operations, NULL);
|
|
||||||
+ proc_spl_taskq_all = proc_create_data("taskq-all", 0444, proc_spl,
|
|
||||||
+ &proc_taskq_all_operations, NULL);
|
|
||||||
if (proc_spl_taskq_all == NULL) {
|
|
||||||
rc = -EUNATCH;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
- proc_spl_taskq = proc_create_data("taskq", 0444,
|
|
||||||
- proc_spl, &proc_taskq_operations, NULL);
|
|
||||||
+ proc_spl_taskq = proc_create_data("taskq", 0444, proc_spl,
|
|
||||||
+ &proc_taskq_operations, NULL);
|
|
||||||
if (proc_spl_taskq == NULL) {
|
|
||||||
rc = -EUNATCH;
|
|
||||||
goto out;
|
|
||||||
@@ -739,8 +741,8 @@ spl_proc_init(void)
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
- proc_spl_kmem_slab = proc_create_data("slab", 0444,
|
|
||||||
- proc_spl_kmem, &proc_slab_operations, NULL);
|
|
||||||
+ proc_spl_kmem_slab = proc_create_data("slab", 0444, proc_spl_kmem,
|
|
||||||
+ &proc_slab_operations, NULL);
|
|
||||||
if (proc_spl_kmem_slab == NULL) {
|
|
||||||
rc = -EUNATCH;
|
|
||||||
goto out;
|
|
||||||
diff --git a/module/spl/spl-thread.c b/module/spl/spl-thread.c
|
|
||||||
index 357d0ca..6f640fd 100644
|
|
||||||
--- a/module/spl/spl-thread.c
|
|
||||||
+++ b/module/spl/spl-thread.c
|
|
||||||
@@ -79,8 +79,7 @@ EXPORT_SYMBOL(__thread_exit);
|
|
||||||
*/
|
|
||||||
kthread_t *
|
|
||||||
__thread_create(caddr_t stk, size_t stksize, thread_func_t func,
|
|
||||||
- const char *name, void *args, size_t len, proc_t *pp,
|
|
||||||
- int state, pri_t pri)
|
|
||||||
+ const char *name, void *args, size_t len, proc_t *pp, int state, pri_t pri)
|
|
||||||
{
|
|
||||||
thread_priv_t *tp;
|
|
||||||
struct task_struct *tsk;
|
|
||||||
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c
|
|
||||||
index 23008af..74ae8fe 100644
|
|
||||||
--- a/module/spl/spl-vnode.c
|
|
||||||
+++ b/module/spl/spl-vnode.c
|
|
||||||
@@ -118,8 +118,8 @@ vn_free(vnode_t *vp)
|
|
||||||
EXPORT_SYMBOL(vn_free);
|
|
||||||
|
|
||||||
int
|
|
||||||
-vn_open(const char *path, uio_seg_t seg, int flags, int mode,
|
|
||||||
- vnode_t **vpp, int x1, void *x2)
|
|
||||||
+vn_open(const char *path, uio_seg_t seg, int flags, int mode, vnode_t **vpp,
|
|
||||||
+ int x1, void *x2)
|
|
||||||
{
|
|
||||||
struct file *fp;
|
|
||||||
struct kstat stat;
|
|
||||||
@@ -210,7 +210,7 @@ EXPORT_SYMBOL(vn_openat);
|
|
||||||
|
|
||||||
int
|
|
||||||
vn_rdwr(uio_rw_t uio, vnode_t *vp, void *addr, ssize_t len, offset_t off,
|
|
||||||
- uio_seg_t seg, int ioflag, rlim64_t x2, void *x3, ssize_t *residp)
|
|
||||||
+ uio_seg_t seg, int ioflag, rlim64_t x2, void *x3, ssize_t *residp)
|
|
||||||
{
|
|
||||||
struct file *fp = vp->v_file;
|
|
||||||
loff_t offset = off;
|
|
||||||
@@ -401,9 +401,8 @@ int vn_space(vnode_t *vp, int cmd, struct flock *bfp, int flag,
|
|
||||||
--end;
|
|
||||||
|
|
||||||
vp->v_file->f_dentry->d_inode->i_op->truncate_range(
|
|
||||||
- vp->v_file->f_dentry->d_inode,
|
|
||||||
- bfp->l_start, end
|
|
||||||
- );
|
|
||||||
+ vp->v_file->f_dentry->d_inode, bfp->l_start, end);
|
|
||||||
+
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
diff --git a/module/spl/spl-xdr.c b/module/spl/spl-xdr.c
|
|
||||||
index 7c166e9..456887e 100644
|
|
||||||
--- a/module/spl/spl-xdr.c
|
|
||||||
+++ b/module/spl/spl-xdr.c
|
|
||||||
@@ -160,7 +160,7 @@ EXPORT_SYMBOL(xdrmem_create);
|
|
||||||
static bool_t
|
|
||||||
xdrmem_control(XDR *xdrs, int req, void *info)
|
|
||||||
{
|
|
||||||
- struct xdr_bytesrec *rec = (struct xdr_bytesrec *) info;
|
|
||||||
+ struct xdr_bytesrec *rec = (struct xdr_bytesrec *)info;
|
|
||||||
|
|
||||||
if (req != XDR_GET_BYTES_AVAIL)
|
|
||||||
return (FALSE);
|
|
||||||
@@ -236,7 +236,7 @@ xdrmem_enc_uint32(XDR *xdrs, uint32_t val)
|
|
||||||
if (xdrs->x_addr + sizeof (uint32_t) > xdrs->x_addr_end)
|
|
||||||
return (FALSE);
|
|
||||||
|
|
||||||
- *((uint32_t *) xdrs->x_addr) = cpu_to_be32(val);
|
|
||||||
+ *((uint32_t *)xdrs->x_addr) = cpu_to_be32(val);
|
|
||||||
|
|
||||||
xdrs->x_addr += sizeof (uint32_t);
|
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ xdrmem_dec_uint32(XDR *xdrs, uint32_t *val)
|
|
||||||
if (xdrs->x_addr + sizeof (uint32_t) > xdrs->x_addr_end)
|
|
||||||
return (FALSE);
|
|
||||||
|
|
||||||
- *val = be32_to_cpu(*((uint32_t *) xdrs->x_addr));
|
|
||||||
+ *val = be32_to_cpu(*((uint32_t *)xdrs->x_addr));
|
|
||||||
|
|
||||||
xdrs->x_addr += sizeof (uint32_t);
|
|
||||||
|
|
||||||
@@ -333,7 +333,7 @@ xdrmem_dec_uint(XDR *xdrs, unsigned *up)
|
|
||||||
{
|
|
||||||
BUILD_BUG_ON(sizeof (unsigned) != 4);
|
|
||||||
|
|
||||||
- return (xdrmem_dec_uint32(xdrs, (uint32_t *) up));
|
|
||||||
+ return (xdrmem_dec_uint32(xdrs, (uint32_t *)up));
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool_t
|
|
||||||
@@ -359,7 +359,7 @@ xdrmem_dec_ulonglong(XDR *xdrs, u_longlong_t *ullp)
|
|
||||||
if (!xdrmem_dec_uint32(xdrs, &low))
|
|
||||||
return (FALSE);
|
|
||||||
|
|
||||||
- *ullp = ((u_longlong_t) high << 32) | low;
|
|
||||||
+ *ullp = ((u_longlong_t)high << 32) | low;
|
|
||||||
|
|
||||||
return (TRUE);
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: LOLi <loli10K@users.noreply.github.com>
|
|
||||||
Date: Fri, 9 Mar 2018 22:51:31 +0100
|
|
||||||
Subject: [PATCH] Fix spl-kmod builds when using rpm >= 4.14
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
With rpm-software-management/rpm@5e94633 a package version containing
|
|
||||||
invalid characters (most commonly a double '-') causes the kmod package
|
|
||||||
generation to terminate with an error. This change takes advantage of
|
|
||||||
the newly introduced rpm macro "_wrong_version_format_terminate_build"
|
|
||||||
to allow kmod packages to be built.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
|
|
||||||
Closes #691
|
|
||||||
(cherry picked from commit 7d17023a33bb6f064e013dd99862e62b719f1e26)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
config/spl-build.m4 | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/config/spl-build.m4 b/config/spl-build.m4
|
|
||||||
index 553b5d5..9c97e64 100644
|
|
||||||
--- a/config/spl-build.m4
|
|
||||||
+++ b/config/spl-build.m4
|
|
||||||
@@ -231,6 +231,7 @@ AC_DEFUN([SPL_AC_RPM], [
|
|
||||||
RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
|
|
||||||
RPM_DEFINE_UTIL=
|
|
||||||
RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
|
|
||||||
+ RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
|
|
||||||
RPM_DEFINE_DKMS=
|
|
||||||
|
|
||||||
SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tony Hutter <hutter2@llnl.gov>
|
|
||||||
Date: Wed, 14 Mar 2018 16:16:00 -0700
|
|
||||||
Subject: [PATCH] Tag spl-0.7.7
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
META file and changelog updated.
|
|
||||||
|
|
||||||
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
|
|
||||||
(cherry picked from commit 2f52bf4a84b1a3520cccd5cee1415ce85b91d04f)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
rpm/generic/spl-kmod.spec.in | 3 +++
|
|
||||||
rpm/generic/spl.spec.in | 3 +++
|
|
||||||
META | 2 +-
|
|
||||||
3 files changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/rpm/generic/spl-kmod.spec.in b/rpm/generic/spl-kmod.spec.in
|
|
||||||
index eb38c21..6af292d 100644
|
|
||||||
--- a/rpm/generic/spl-kmod.spec.in
|
|
||||||
+++ b/rpm/generic/spl-kmod.spec.in
|
|
||||||
@@ -167,6 +167,9 @@ chmod u+x ${RPM_BUILD_ROOT}%{kmodinstdir_prefix}/*/extra/*/*/*
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
+* Wed Mar 14 2018 Tony Hutter <hutter2@llnl.gov> - 0.7.7-1
|
|
||||||
+- Released 0.7.7-1, detailed release notes are available at:
|
|
||||||
+- https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.7
|
|
||||||
* Thu Feb 01 2018 Tony Hutter <hutter2@llnl.gov> - 0.7.6-1
|
|
||||||
- Released 0.7.6-1, detailed release notes are available at:
|
|
||||||
- https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.6
|
|
||||||
diff --git a/rpm/generic/spl.spec.in b/rpm/generic/spl.spec.in
|
|
||||||
index 0338a47..b693bdc 100644
|
|
||||||
--- a/rpm/generic/spl.spec.in
|
|
||||||
+++ b/rpm/generic/spl.spec.in
|
|
||||||
@@ -34,6 +34,9 @@ make install DESTDIR=%{?buildroot}
|
|
||||||
%{_mandir}/man5/*
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
+* Wed Mar 14 2018 Tony Hutter <hutter2@llnl.gov> - 0.7.7-1
|
|
||||||
+- Released 0.7.7-1, detailed release notes are available at:
|
|
||||||
+- https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.7
|
|
||||||
* Thu Feb 01 2018 Tony Hutter <hutter2@llnl.gov> - 0.7.6-1
|
|
||||||
- Released 0.7.6-1, detailed release notes are available at:
|
|
||||||
- https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.6
|
|
||||||
diff --git a/META b/META
|
|
||||||
index 4b0c0bb..64a07f1 100644
|
|
||||||
--- a/META
|
|
||||||
+++ b/META
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
Meta: 1
|
|
||||||
Name: spl
|
|
||||||
Branch: 1.0
|
|
||||||
-Version: 0.7.6
|
|
||||||
+Version: 0.7.7
|
|
||||||
Release: 1
|
|
||||||
Release-Tags: relext
|
|
||||||
License: GPL
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
0001-remove-DKMS-and-module-build.patch
|
|
||||||
0002-Allow-longer-SPA-names-in-stats.patch
|
|
||||||
0003-Remove-vn_rename-and-vn_remove.patch
|
|
||||||
0004-Remove-all-spin_is_locked-calls.patch
|
|
||||||
0005-Add-cv_timedwait_io.patch
|
|
||||||
0006-Fix-cstyle-warnings.patch
|
|
||||||
0007-Split-spl-build.m4.patch
|
|
||||||
0008-Fix-multiple-evaluations-of-VERIFY-and-ASSERT-on-fai.patch
|
|
||||||
0009-Staticize-kstat_default_update.patch
|
|
||||||
0010-Fix-function-name-typos.patch
|
|
||||||
0011-Fix-more-cstyle-warnings.patch
|
|
||||||
0012-Fix-spl-kmod-builds-when-using-rpm-4.14.patch
|
|
||||||
0013-Tag-spl-0.7.7.patch
|
|
||||||
Submodule
+1
Submodule upstream added at fb6d532066
@@ -1,227 +0,0 @@
|
|||||||
zfs-linux (0.7.7-pve2~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* (temporarily) revert likely cause of #7401
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 9 Apr 2018 09:49:27 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.7.7-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update ZFS to 0.7.7
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 3 Apr 2018 14:28:35 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.7.6-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update ZFS to 0.7.6
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 21 Feb 2018 09:48:29 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.7.4-pve2~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* cherry-pick ARC hit rate fix from 0.7.6
|
|
||||||
|
|
||||||
* always load ZFS modules on boot
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Fri, 19 Jan 2018 11:31:14 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.7.4-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update ZFS to 0.7.4
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 19 Dec 2017 12:52:42 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.7.3-pve1~bpo9) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update ZFS to 0.7.3
|
|
||||||
|
|
||||||
* include fix for user namespace setgid issue (#6800 upstream)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Nov 2017 09:14:19 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.7.2-pve1~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update zfs to 0.7.2
|
|
||||||
|
|
||||||
* add PR 6616 - zfs send/recv compatibility with 0.6.5
|
|
||||||
|
|
||||||
* add PR 6695 - zfs recv: don't skip over objects which should be freed
|
|
||||||
|
|
||||||
* various small fixes
|
|
||||||
|
|
||||||
* split test suite into zfs-test package
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 12 Oct 2017 13:34:05 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.11-pve18~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* fix #1509: arc_summary error with L2ARC
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 2 Oct 2017 09:30:41 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.11-pve17~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update zfs to debian/0.6.5.11-1
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Jul 2017 13:11:45 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.9-pve16~bpo90) unstable; urgency=medium
|
|
||||||
|
|
||||||
* drop transitional packages
|
|
||||||
|
|
||||||
* convert python scripts to python 3, drop .py suffix
|
|
||||||
|
|
||||||
* rebuild for PVE 5.0 / Debian Stretch
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Mar 2017 09:45:52 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.9-pve15~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update zfs to debian/0.6.5.9-1
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 6 Feb 2017 12:39:10 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.8-pve14~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update zfs to debian/0.6.5.8-3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 11 Jan 2017 09:34:58 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.8-pve13~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* fix #1184: zfs-share.service has wrong path to 'rm' command
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Oct 2016 11:25:47 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.8-pve12~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* import with "-d /dev/disk/by-id" in systemd service
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 24 Oct 2016 13:48:08 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.8-pve11~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update zfs to debian/0.6.5.8-1
|
|
||||||
|
|
||||||
* switch package upstream sources to Debian (Jessie)
|
|
||||||
|
|
||||||
* add transitional packages for upgrades
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 12 Oct 2016 11:16:02 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5.7-pve10~bpo80) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to pkg-zfs jessie/0.6.5.7-8
|
|
||||||
|
|
||||||
* change package versioning to allow upgrades from PVE3/wheezy
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Jun 2016 09:50:00 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve9~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Update to pkg-zfs jessie/0.6.5.6-3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 12 Apr 2016 09:51:35 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve8~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to zfs-0.6.5.6
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 30 Mar 2016 10:50:22 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve7~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to zfs-0.6.5.4
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 14 Jan 2016 10:51:17 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve6~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Prepare to tag zfs-0.6.5.3
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 05 Nov 2015 07:21:44 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve5~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Illumos 6267 - dn_bonus evicted too early
|
|
||||||
|
|
||||||
* Fix use-after-free in vdev_disk_physio_completion
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 04 Nov 2015 17:42:42 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve4~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to master/debian/jessie/0.6.5.2-2
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 05 Oct 2015 17:56:45 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve3~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* do not install /etc/init.d/zfs-zed script to avoid double startup
|
|
||||||
with systemd
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 28 Sep 2015 10:14:40 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve2~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to master/debian/jessie/0.6.5.1-4
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Thu, 24 Sep 2015 12:45:33 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.5-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to master/debian/jessie/0.6.5.1-2
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 21 Sep 2015 10:02:41 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.4-pve3~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to snapshot/debian/jessie/0.6.4-24-6bec43
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Mon, 24 Aug 2015 06:13:44 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.4-pve2~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.4.2 (snapshot/debian/jessie/0.6.4-21-53b1d9)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 21 Jul 2015 11:03:21 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.4-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* update to 0.6.4 (use upstream zol package definitions)
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 14 Apr 2015 10:19:22 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.3-pve3~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* ignore zfs-import-scan errors
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Tue, 31 Mar 2015 17:52:40 +0200
|
|
||||||
|
|
||||||
zfs-linux (0.6.3-pve2~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* use systemd for service startup
|
|
||||||
|
|
||||||
* install zed configuration file /etc/zfs/zed.d/zed.rc
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Sun, 15 Mar 2015 15:52:54 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.3-pve1~jessie) unstable; urgency=medium
|
|
||||||
|
|
||||||
* recompile on jessie
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Feb 2015 16:02:08 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.3-2~wheezy) unstable; urgency=low
|
|
||||||
|
|
||||||
* use /sbin/modprobe to avoid warning inside initrd
|
|
||||||
|
|
||||||
* fix warning about undefined values inside initrd
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Wed, 14 Jan 2015 19:03:04 +0100
|
|
||||||
|
|
||||||
zfs-linux (0.6.3-1~wheezy) unstable; urgency=low
|
|
||||||
|
|
||||||
* first version for Proxmox VE
|
|
||||||
|
|
||||||
-- Proxmox Support Team <support@proxmox.com> Sat, 10 Jan 2015 14:06:34 +0100
|
|
||||||
|
|
||||||
-1
Submodule zfs-debian deleted from 751356d354
@@ -1,282 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
|
||||||
Date: Mon, 6 Feb 2017 11:03:10 +0100
|
|
||||||
Subject: [PATCH] remove DKMS, modules and dracut build
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
debian/control.in | 41 ++------------------
|
|
||||||
debian/control | 1 -
|
|
||||||
debian/not-installed | 2 +
|
|
||||||
debian/rules | 105 +--------------------------------------------------
|
|
||||||
4 files changed, 7 insertions(+), 142 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/debian/control.in b/debian/control.in
|
|
||||||
index aef8cac2e..3cc15a05b 100644
|
|
||||||
--- a/debian/control.in
|
|
||||||
+++ b/debian/control.in
|
|
||||||
@@ -9,7 +9,6 @@ Build-Depends: autotools-dev,
|
|
||||||
debhelper (>= 10.2),
|
|
||||||
dh-autoreconf,
|
|
||||||
dh-python,
|
|
||||||
- dkms (>> 2.1.1.2-5),
|
|
||||||
libattr1-dev,
|
|
||||||
libblkid-dev,
|
|
||||||
libselinux1-dev,
|
|
||||||
@@ -86,27 +85,10 @@ Description: OpenZFS pool library for Linux
|
|
||||||
.
|
|
||||||
This zpool library provides support for managing zpools.
|
|
||||||
|
|
||||||
-Package: zfs-dkms
|
|
||||||
-Architecture: all
|
|
||||||
-Pre-Depends: spl-dkms (<<${source:Upstream-Version}.),
|
|
||||||
- spl-dkms (>= ${source:Upstream-Version})
|
|
||||||
-Depends: dkms (>> 2.1.1.2-5), lsb-release, ${misc:Depends}
|
|
||||||
-Recommends: zfs-zed, zfsutils-linux (>= ${binary:Version}),
|
|
||||||
- @LINUX_COMPAT@
|
|
||||||
-Provides: zfs-modules
|
|
||||||
-Description: OpenZFS filesystem kernel modules for Linux
|
|
||||||
- The Z file system is a pooled filesystem designed for maximum data
|
|
||||||
- integrity, supporting data snapshots, multiple copies, and data
|
|
||||||
- checksums.
|
|
||||||
- .
|
|
||||||
- This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of
|
|
||||||
- OpenZFS.
|
|
||||||
-
|
|
||||||
Package: zfs-initramfs
|
|
||||||
Architecture: all
|
|
||||||
Depends: busybox-initramfs | busybox-static | busybox,
|
|
||||||
initramfs-tools,
|
|
||||||
- zfs-modules | zfs-dkms,
|
|
||||||
zfsutils-linux (>= ${binary:Version}),
|
|
||||||
${misc:Depends}
|
|
||||||
Description: OpenZFS root filesystem capabilities for Linux - initramfs
|
|
||||||
@@ -117,29 +99,14 @@ Description: OpenZFS root filesystem capabilities for Linux - initramfs
|
|
||||||
This package adds OpenZFS to the system initramfs with a hook
|
|
||||||
for the initramfs-tools infrastructure.
|
|
||||||
|
|
||||||
-Package: zfs-dracut
|
|
||||||
-Architecture: all
|
|
||||||
-Depends: dracut,
|
|
||||||
- zfs-modules | zfs-dkms,
|
|
||||||
- zfsutils-linux (>= ${binary:Version}),
|
|
||||||
- ${misc:Depends}
|
|
||||||
-Description: OpenZFS root filesystem capabilities for Linux - dracut
|
|
||||||
- The Z file system is a pooled filesystem designed for maximum data
|
|
||||||
- integrity, supporting data snapshots, multiple copies, and data
|
|
||||||
- checksums.
|
|
||||||
- .
|
|
||||||
- This package adds OpenZFS to the system initramfs with a hook
|
|
||||||
- for the dracut infrastructure.
|
|
||||||
-
|
|
||||||
Package: zfsutils-linux
|
|
||||||
Section: contrib/admin
|
|
||||||
Architecture: linux-any
|
|
||||||
Depends: python3, ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
|
|
||||||
-Recommends: lsb-base, zfs-modules | zfs-dkms, zfs-zed
|
|
||||||
-Breaks: zfs-dkms (<< ${binary:Version}), zfs-dkms (>> ${binary:Version})
|
|
||||||
+Recommends: lsb-base, zfs-zed
|
|
||||||
Suggests: nfs-kernel-server,
|
|
||||||
samba-common-bin (>= 3.0.23),
|
|
||||||
- zfs-initramfs | zfs-dracut
|
|
||||||
+ zfs-initramfs
|
|
||||||
Conflicts: zfs, zfs-fuse, zutils
|
|
||||||
Provides: zfsutils
|
|
||||||
Description: command-line tools to manage OpenZFS filesystems
|
|
||||||
@@ -153,8 +120,7 @@ Description: command-line tools to manage OpenZFS filesystems
|
|
||||||
Package: zfs-zed
|
|
||||||
Section: contrib/admin
|
|
||||||
Architecture: linux-any
|
|
||||||
-Depends: zfs-modules | zfs-dkms,
|
|
||||||
- zfsutils-linux (>= ${binary:Version}),
|
|
||||||
+Depends: zfsutils-linux (>= ${binary:Version}),
|
|
||||||
${misc:Depends},
|
|
||||||
${shlibs:Depends}
|
|
||||||
Description: OpenZFS Event Daemon
|
|
||||||
@@ -177,7 +143,6 @@ Depends: acl,
|
|
||||||
python,
|
|
||||||
sudo,
|
|
||||||
sysstat,
|
|
||||||
- zfs-modules | zfs-dkms,
|
|
||||||
zfsutils-linux (>=${binary:Version}),
|
|
||||||
${misc:Depends},
|
|
||||||
${shlibs:Depends}
|
|
||||||
diff --git a/debian/control b/debian/control
|
|
||||||
index 3cf6fb649..51cfe6a64 100644
|
|
||||||
--- a/debian/control
|
|
||||||
+++ b/debian/control
|
|
||||||
@@ -9,7 +9,6 @@ Build-Depends: autotools-dev,
|
|
||||||
debhelper (>= 10.2),
|
|
||||||
dh-autoreconf,
|
|
||||||
dh-python,
|
|
||||||
- dkms (>> 2.1.1.2-5),
|
|
||||||
libattr1-dev,
|
|
||||||
libblkid-dev,
|
|
||||||
libselinux1-dev,
|
|
||||||
diff --git a/debian/not-installed b/debian/not-installed
|
|
||||||
index f54fe7310..c3929d90e 100644
|
|
||||||
--- a/debian/not-installed
|
|
||||||
+++ b/debian/not-installed
|
|
||||||
@@ -5,3 +5,5 @@ etc/zfs/vdev_id.conf.alias.example
|
|
||||||
etc/zfs/vdev_id.conf.multipath.example
|
|
||||||
etc/zfs/vdev_id.conf.sas_direct.example
|
|
||||||
etc/zfs/vdev_id.conf.sas_switch.example
|
|
||||||
+usr/lib/dracut
|
|
||||||
+usr/share/zfs/enum-extract.pl
|
|
||||||
diff --git a/debian/rules b/debian/rules
|
|
||||||
index cc47a74a1..a5c37c81d 100755
|
|
||||||
--- a/debian/rules
|
|
||||||
+++ b/debian/rules
|
|
||||||
@@ -5,9 +5,6 @@ include /usr/share/dpkg/default.mk
|
|
||||||
LSB_DISTRIBUTOR := $(shell lsb_release -is)
|
|
||||||
NAME := $(shell awk '$$1 == "Name:" { print $$2; }' META)
|
|
||||||
|
|
||||||
-DKMSFILES := module include config zfs.release.in autogen.sh META AUTHORS \
|
|
||||||
- DISCLAIMER COPYRIGHT OPENSOLARIS.LICENSE README.markdown
|
|
||||||
-
|
|
||||||
ifndef BUILD_UDEB
|
|
||||||
BUILD_UDEB=false
|
|
||||||
endif
|
|
||||||
@@ -17,21 +14,16 @@ KVERS=$(shell uname -r)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifndef SPL
|
|
||||||
-SPL=/usr/src/spl-$(DEB_VERSION_UPSTREAM)
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-ifndef SPLOBJ
|
|
||||||
-SPLOBJ=/var/lib/dkms/spl/$(DEB_VERSION_UPSTREAM)/$(KVERS)/$(DEB_TARGET_GNU_CPU)
|
|
||||||
+SPL=../spl-build
|
|
||||||
endif
|
|
||||||
|
|
||||||
non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
|
|
||||||
PACKAGE=zfs
|
|
||||||
-pmodules = $(PACKAGE)-modules-$(non_epoch_version)
|
|
||||||
|
|
||||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
||||||
|
|
||||||
%:
|
|
||||||
- dh $@ --with autoreconf,dkms,python3,systemd --parallel
|
|
||||||
+ dh $@ --with autoreconf,python3,systemd --parallel
|
|
||||||
|
|
||||||
override_dh_auto_configure:
|
|
||||||
sed "s/@LINUX_COMPAT@/linux-libc-dev \(< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
|
|
||||||
@@ -73,36 +65,6 @@ override_dh_auto_install:
|
|
||||||
$(INSTALL) -d '$(CURDIR)/debian/tmp/usr/sbin/'
|
|
||||||
mv '$(CURDIR)/debian/tmp/sbin/zed' '$(CURDIR)/debian/tmp/usr/sbin/zed'
|
|
||||||
|
|
||||||
- @# Get a bare copy of the source code for DKMS.
|
|
||||||
- @# This creates the $(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/ tree, which does not
|
|
||||||
- @# contain the userland sources. NB: Remove-userland-dist-rules.patch
|
|
||||||
- $(MAKE) distdir
|
|
||||||
-
|
|
||||||
- @# Install the DKMS source.
|
|
||||||
- @# We only want the files needed to build the modules
|
|
||||||
- mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)'
|
|
||||||
- $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)' || exit 1;)
|
|
||||||
- @# Hellish awk line:
|
|
||||||
- @# * Deletes from configure.ac the parts not needed for building the kernel module
|
|
||||||
- @# * It deletes from inside AC_CONFIG_FILES([]) everything except:
|
|
||||||
- @# (Makefile$|include/|module/|*.release$)
|
|
||||||
- @# * Takes care of spaces and tabs
|
|
||||||
- awk '/^AC_CONFIG_FILES\(\[/,/^\]\)/ { if ($$0 !~ /^(AC_CONFIG_FILES\(\[([ \t]+)?$$|\]\)([ \t]+)?$$|([ \t]+)?(include\/|module\/|Makefile([ \t]+)?$$|zfs\.release([ \t]+)?$$))/){next} } {print}' \
|
|
||||||
- '$(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/configure.ac' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/configure.ac'
|
|
||||||
- @# Set "SUBDIRS = module include" for CONFIG_KERNEL and remove SUBDIRS for all other configs.
|
|
||||||
- sed '1,/CONFIG_KERNEL/s/SUBDIRS.*=.*//g;s/SUBDIRS.*=.*/SUBDIRS = module include/g;' \
|
|
||||||
- '$(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/Makefile.am' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/Makefile.am'
|
|
||||||
- @# Sanity test
|
|
||||||
- grep -q 'SUBDIRS = module include' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/Makefile.am'
|
|
||||||
- @# Run autogen on the stripped source tree
|
|
||||||
- cd '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)'; ./autogen.sh
|
|
||||||
- rm -fr '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/autom4te.cache'
|
|
||||||
-
|
|
||||||
- @# This shunt allows DKMS to install the Module.symvers and zfs_config.h
|
|
||||||
- @# files to the ${dkms_tree} area through the POST_INSTALL directive.
|
|
||||||
- printf '#!/bin/sh\ncp "$$@"\n' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/cp'
|
|
||||||
- chmod 755 '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/cp'
|
|
||||||
-
|
|
||||||
mkdir -p $(CURDIR)/debian/tmp/usr/lib
|
|
||||||
for i in `ls $(CURDIR)/debian/tmp/lib/*.so`; do \
|
|
||||||
ln -s /lib/`readlink $${i}` $(CURDIR)/debian/tmp/usr/lib/`basename $${i}`; \
|
|
||||||
@@ -112,9 +74,6 @@ override_dh_auto_install:
|
|
||||||
chmod a-x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
|
|
||||||
chmod a-x $(CURDIR)/debian/tmp/etc/default/zfs
|
|
||||||
|
|
||||||
-override_dh_dkms:
|
|
||||||
- dh_dkms -V $(DEB_VERSION_UPSTREAM)
|
|
||||||
-
|
|
||||||
override_dh_makeshlibs:
|
|
||||||
dh_makeshlibs -a -V
|
|
||||||
ifeq ($(BUILD_UDEB), true)
|
|
||||||
@@ -152,65 +111,5 @@ override_dh_install:
|
|
||||||
|
|
||||||
# ------------
|
|
||||||
|
|
||||||
-override_dh_prep-deb-files:
|
|
||||||
- for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
|
|
||||||
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/' \
|
|
||||||
- < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
|
|
||||||
- done
|
|
||||||
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
|
|
||||||
- < debian/control.modules.in > debian/control
|
|
||||||
-
|
|
||||||
-override_dh_configure_modules_udeb: override_dh_configure_modules_udeb_stamp
|
|
||||||
-override_dh_configure_modules_udeb_stamp:
|
|
||||||
- ./configure \
|
|
||||||
- --without-selinux \
|
|
||||||
- --with-config=kernel \
|
|
||||||
- --with-linux=$(KSRC) \
|
|
||||||
- --with-linux-obj=$(KOBJ) \
|
|
||||||
- --with-spl=$(SPL) \
|
|
||||||
- --with-spl-obj=$(SPLOBJ)
|
|
||||||
- touch override_dh_configure_modules_udeb_stamp
|
|
||||||
-
|
|
||||||
-override_dh_configure_modules: override_dh_configure_modules_stamp
|
|
||||||
-override_dh_configure_modules_stamp:
|
|
||||||
- ./configure \
|
|
||||||
- --with-config=kernel \
|
|
||||||
- --with-linux=$(KSRC) \
|
|
||||||
- --with-linux-obj=$(KOBJ) \
|
|
||||||
- --with-spl=$(SPL) \
|
|
||||||
- --with-spl-obj=$(SPLOBJ)
|
|
||||||
- touch override_dh_configure_modules_stamp
|
|
||||||
-
|
|
||||||
-override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configure_modules_udeb
|
|
||||||
- dh_testdir
|
|
||||||
- dh_testroot
|
|
||||||
- dh_prep
|
|
||||||
-
|
|
||||||
- $(MAKE) -C $(CURDIR)/module modules
|
|
||||||
-
|
|
||||||
- dh_installdirs -p${pmodules}-di
|
|
||||||
- dh_install -p${pmodules}-di
|
|
||||||
- dh_gencontrol -p${pmodules}-di
|
|
||||||
-
|
|
||||||
- dh_builddeb -p${pmodules}-di
|
|
||||||
-
|
|
||||||
-override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
|
|
||||||
- dh_testdir
|
|
||||||
- dh_testroot
|
|
||||||
- dh_prep
|
|
||||||
-
|
|
||||||
- $(MAKE) -C $(CURDIR)/module modules
|
|
||||||
-
|
|
||||||
- dh_install -p${pmodules}
|
|
||||||
- dh_installdocs -p${pmodules}
|
|
||||||
- dh_installchangelogs -p${pmodules}
|
|
||||||
- dh_compress -p${pmodules}
|
|
||||||
- dh_strip -p${pmodules}
|
|
||||||
- dh_fixperms -p${pmodules}
|
|
||||||
- dh_installdeb -p${pmodules}
|
|
||||||
- dh_gencontrol -p${pmodules}
|
|
||||||
- dh_md5sums -p${pmodules}
|
|
||||||
- dh_builddeb -p${pmodules}
|
|
||||||
-
|
|
||||||
debian-copyright:
|
|
||||||
cme update dpkg-copyright -file debian/copyright.cme
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Richard Yao <richard.yao@clusterhq.com>
|
|
||||||
Date: Tue, 23 Sep 2014 13:31:33 -0400
|
|
||||||
Subject: [PATCH] Make --enable-debug fail when given bogus args
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Currently, bogus options to --enable-debug become --disable-debug. That
|
|
||||||
means that passing --enable-debug=true is analogous to --disable-debug,
|
|
||||||
but the result is counterintuitive. We switch to AS_CASE to allow us to
|
|
||||||
fail when given a bogus option.
|
|
||||||
|
|
||||||
Also, we modify the text printed to clarify that --enable-debug enables
|
|
||||||
assertions.
|
|
||||||
|
|
||||||
Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Richard Yao <richard.yao@clusterhq.com>
|
|
||||||
Closes #2734
|
|
||||||
(cherry picked from commit 0f1ff38476ba255eb1f066f675c8721168ff2295)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
config/zfs-build.m4 | 43 +++++++++++++++++++++++++------------------
|
|
||||||
1 file changed, 25 insertions(+), 18 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index 7651dc2c1..78a87aef7 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -6,30 +6,37 @@ AC_DEFUN([ZFS_AC_LICENSE], [
|
|
||||||
AC_MSG_RESULT([$ZFS_META_LICENSE])
|
|
||||||
])
|
|
||||||
|
|
||||||
+AC_DEFUN([ZFS_AC_DEBUG_ENABLE], [
|
|
||||||
+ KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
|
|
||||||
+ HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
|
|
||||||
+ DEBUG_CFLAGS="-DDEBUG -Werror"
|
|
||||||
+ DEBUG_STACKFLAGS="-fstack-check"
|
|
||||||
+ DEBUG_ZFS="_with_debug"
|
|
||||||
+ AC_DEFINE(ZFS_DEBUG, 1, [zfs debugging enabled])
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
+AC_DEFUN([ZFS_AC_DEBUG_DISABLE], [
|
|
||||||
+ KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
|
|
||||||
+ HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
|
|
||||||
+ DEBUG_CFLAGS="-DNDEBUG"
|
|
||||||
+ DEBUG_STACKFLAGS=""
|
|
||||||
+ DEBUG_ZFS="_without_debug"
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
AC_DEFUN([ZFS_AC_DEBUG], [
|
|
||||||
- AC_MSG_CHECKING([whether debugging is enabled])
|
|
||||||
+ AC_MSG_CHECKING([whether assertion support will be enabled])
|
|
||||||
AC_ARG_ENABLE([debug],
|
|
||||||
[AS_HELP_STRING([--enable-debug],
|
|
||||||
- [Enable generic debug support @<:@default=no@:>@])],
|
|
||||||
+ [Enable assertion support @<:@default=no@:>@])],
|
|
||||||
[],
|
|
||||||
[enable_debug=no])
|
|
||||||
|
|
||||||
- AS_IF([test "x$enable_debug" = xyes],
|
|
||||||
- [
|
|
||||||
- KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
|
|
||||||
- HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
|
|
||||||
- DEBUG_CFLAGS="-DDEBUG -Werror"
|
|
||||||
- DEBUG_STACKFLAGS="-fstack-check"
|
|
||||||
- DEBUG_ZFS="_with_debug"
|
|
||||||
- AC_DEFINE(ZFS_DEBUG, 1, [zfs debugging enabled])
|
|
||||||
- ],
|
|
||||||
- [
|
|
||||||
- KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
|
|
||||||
- HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
|
|
||||||
- DEBUG_CFLAGS="-DNDEBUG"
|
|
||||||
- DEBUG_STACKFLAGS=""
|
|
||||||
- DEBUG_ZFS="_without_debug"
|
|
||||||
- ])
|
|
||||||
+ AS_CASE(["x$enable_debug"],
|
|
||||||
+ ["xyes"],
|
|
||||||
+ [ZFS_AC_DEBUG_ENABLE],
|
|
||||||
+ ["xno"],
|
|
||||||
+ [ZFS_AC_DEBUG_DISABLE],
|
|
||||||
+ [AC_MSG_ERROR([Unknown option $enable_debug])])
|
|
||||||
|
|
||||||
AC_SUBST(DEBUG_CFLAGS)
|
|
||||||
AC_SUBST(DEBUG_STACKFLAGS)
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Richard Yao <richard.yao@clusterhq.com>
|
|
||||||
Date: Tue, 23 Sep 2014 14:29:30 -0400
|
|
||||||
Subject: [PATCH] Implement --enable-debuginfo to force debuginfo
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Inspection of a Ubuntu 14.04 x64 system revealed that the config file
|
|
||||||
used to build the kernel image differs from the config file used to
|
|
||||||
build kernel modules by the presence of CONFIG_DEBUG_INFO=y:
|
|
||||||
|
|
||||||
This in itself is insufficient to show that the kernel is built with
|
|
||||||
debuginfo, but a cursory analysis of the debuginfo provided and the
|
|
||||||
size of the kernel strongly suggests that it was built with
|
|
||||||
CONFIG_DEBUG_INFO=y while the modules were not. Installing
|
|
||||||
linux-image-$(uname -r)-dbgsym had no obvious effect on the debuginfo
|
|
||||||
provided by either the modules or the kernel.
|
|
||||||
|
|
||||||
The consequence is that issue reports from distributions such as Ubuntu
|
|
||||||
and its derivatives build kernel modules without debuginfo contain
|
|
||||||
nonsensical backtraces. It is therefore desireable to force generation
|
|
||||||
of debuginfo, so we implement --enable-debuginfo. Since the build system
|
|
||||||
can build both userspace components and kernel modules, the generic
|
|
||||||
--enable-debuginfo option will force debuginfo for both. However, it
|
|
||||||
also supports --enable-debuginfo=kernel and --enable-debuginfo=user for
|
|
||||||
finer grained control.
|
|
||||||
|
|
||||||
Enabling debuginfo for the kernel modules works by injecting
|
|
||||||
CONFIG_DEBUG_INFO=y into the make environment. This is enables
|
|
||||||
generation of debuginfo by the kernel build systems on all Linux
|
|
||||||
kernels, but the build environment is slightly different int hat
|
|
||||||
CONFIG_DEBUG_INFO has not been in the CPP. Adding -DCONFIG_DEBUG_INFO
|
|
||||||
would fix that, but it would also cause build failures on kernels where
|
|
||||||
CONFIG_DEBUG_INFO=y is already set. That would complicate its use in
|
|
||||||
DKMS environments that support a range of kernels and is therefore
|
|
||||||
undesireable. We could write a compatibility shim to enable
|
|
||||||
CONFIG_DEBUG_INFO only when it is explicitly disabled, but we forgo
|
|
||||||
doing that because it is unnecessary. Nothing in ZoL or the kernel uses
|
|
||||||
CONFIG_DEBUG_INFO in the CPP at this time and that is unlikely to
|
|
||||||
change.
|
|
||||||
|
|
||||||
Enabling debuginfo for the userspace components is done by injecting -g
|
|
||||||
into CPPFLAGS. This is not necessary because the build system honors the
|
|
||||||
environment's CPPFLAGS by appending them to the actual CPPFLAGS used,
|
|
||||||
but it is supported for consistency.
|
|
||||||
|
|
||||||
Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Richard Yao <richard.yao@clusterhq.com>
|
|
||||||
Closes #2734
|
|
||||||
(cherry picked from commit 834815e9f767c9c5e7220ff84f29b1f069822a4d)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
configure.ac | 1 +
|
|
||||||
config/zfs-build.m4 | 33 ++++++++++++++++++++++++++++++++-
|
|
||||||
2 files changed, 33 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 0c7977ef8..e145aa370 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -55,6 +55,7 @@ ZFS_AC_LICENSE
|
|
||||||
ZFS_AC_PACKAGE
|
|
||||||
ZFS_AC_CONFIG
|
|
||||||
ZFS_AC_DEBUG
|
|
||||||
+ZFS_AC_DEBUGINFO
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
|
||||||
Makefile
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index 78a87aef7..a8609b829 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -38,12 +38,43 @@ AC_DEFUN([ZFS_AC_DEBUG], [
|
|
||||||
[ZFS_AC_DEBUG_DISABLE],
|
|
||||||
[AC_MSG_ERROR([Unknown option $enable_debug])])
|
|
||||||
|
|
||||||
- AC_SUBST(DEBUG_CFLAGS)
|
|
||||||
AC_SUBST(DEBUG_STACKFLAGS)
|
|
||||||
AC_SUBST(DEBUG_ZFS)
|
|
||||||
AC_MSG_RESULT([$enable_debug])
|
|
||||||
])
|
|
||||||
|
|
||||||
+AC_DEFUN([ZFS_AC_DEBUGINFO_KERNEL], [
|
|
||||||
+ KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
+AC_DEFUN([ZFS_AC_DEBUGINFO_USER], [
|
|
||||||
+ DEBUG_CFLAGS="$DEBUG_CFLAGS -g"
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
+AC_DEFUN([ZFS_AC_DEBUGINFO], [
|
|
||||||
+ AC_MSG_CHECKING([whether debuginfo support will be forced])
|
|
||||||
+ AC_ARG_ENABLE([debuginfo],
|
|
||||||
+ [AS_HELP_STRING([--enable-debuginfo],
|
|
||||||
+ [Force generation of debuginfo @<:@default=no@:>@])],
|
|
||||||
+ [],
|
|
||||||
+ [enable_debuginfo=no])
|
|
||||||
+
|
|
||||||
+ AS_CASE(["x$enable_debuginfo"],
|
|
||||||
+ ["xyes"],
|
|
||||||
+ [ZFS_AC_DEBUGINFO_KERNEL
|
|
||||||
+ ZFS_AC_DEBUGINFO_USER],
|
|
||||||
+ ["xkernel"],
|
|
||||||
+ [ZFS_AC_DEBUGINFO_KERNEL],
|
|
||||||
+ ["xuser"],
|
|
||||||
+ [ZFS_AC_DEBUGINFO_USER],
|
|
||||||
+ ["xno"],
|
|
||||||
+ [],
|
|
||||||
+ [AC_MSG_ERROR([Unknown option $enable_debug])])
|
|
||||||
+
|
|
||||||
+ AC_SUBST(DEBUG_CFLAGS)
|
|
||||||
+ AC_MSG_RESULT([$enable_debuginfo])
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_BOOL_COMPARE
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Fri, 15 Sep 2017 10:24:13 -0700
|
|
||||||
Subject: [PATCH] Add configure option to enable gcov analysis
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
* Add configure option to enable gcov analysis.
|
|
||||||
* Includes a few minor ctime fixes.
|
|
||||||
* Add codecov.yml configuration.
|
|
||||||
|
|
||||||
Reviewed-by: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #6642
|
|
||||||
(cherry picked from commit 184087f822ef178d6f5c155681ee7c3d90f23321)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
configure.ac | 1 +
|
|
||||||
Makefile.am | 8 +++---
|
|
||||||
.github/codecov.yml | 9 +++++++
|
|
||||||
config/zfs-build.m4 | 31 ++++++++++++++++++++++
|
|
||||||
.../tests/functional/ctime/ctime_001_pos.ksh | 0
|
|
||||||
5 files changed, 45 insertions(+), 4 deletions(-)
|
|
||||||
create mode 100644 .github/codecov.yml
|
|
||||||
mode change 100644 => 100755 tests/zfs-tests/tests/functional/ctime/ctime_001_pos.ksh
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index e145aa370..ee754fd38 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -56,6 +56,7 @@ ZFS_AC_PACKAGE
|
|
||||||
ZFS_AC_CONFIG
|
|
||||||
ZFS_AC_DEBUG
|
|
||||||
ZFS_AC_DEBUGINFO
|
|
||||||
+ZFS_AC_GCOV
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
|
||||||
Makefile
|
|
||||||
diff --git a/Makefile.am b/Makefile.am
|
|
||||||
index 508d3f40e..732a373bd 100644
|
|
||||||
--- a/Makefile.am
|
|
||||||
+++ b/Makefile.am
|
|
||||||
@@ -29,10 +29,10 @@ distclean-local::
|
|
||||||
-o -name .pc -o -name .hg -o -name .git \) -prune -o \
|
|
||||||
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
|
|
||||||
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
|
|
||||||
- -o -name '.*.rej' -o -name '.script-config' -o -size 0 \
|
|
||||||
- -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
|
|
||||||
- -o -name 'Makefile' -o -name 'Module.symvers' \
|
|
||||||
- -o -name '*.order' -o -name '*.markers' \) \
|
|
||||||
+ -o -name '.*.rej' -o -size 0 -o -name '*%' -o -name '.*.cmd' \
|
|
||||||
+ -o -name 'core' -o -name 'Makefile' -o -name 'Module.symvers' \
|
|
||||||
+ -o -name '*.order' -o -name '*.markers' -o -name '*.gcda' \
|
|
||||||
+ -o -name '*.gcno' \) \
|
|
||||||
-type f -print | xargs $(RM)
|
|
||||||
|
|
||||||
dist-hook:
|
|
||||||
diff --git a/.github/codecov.yml b/.github/codecov.yml
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000..f36be39cb
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/.github/codecov.yml
|
|
||||||
@@ -0,0 +1,9 @@
|
|
||||||
+codecov:
|
|
||||||
+ strict_yaml_branch: master # only use the latest copy on master branch
|
|
||||||
+
|
|
||||||
+comment: off
|
|
||||||
+
|
|
||||||
+coverage:
|
|
||||||
+ status:
|
|
||||||
+ project: off
|
|
||||||
+ patch: off
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index a8609b829..b84658a64 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -75,6 +75,37 @@ AC_DEFUN([ZFS_AC_DEBUGINFO], [
|
|
||||||
AC_MSG_RESULT([$enable_debuginfo])
|
|
||||||
])
|
|
||||||
|
|
||||||
+AC_DEFUN([ZFS_AC_GCOV_KERNEL], [
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
+AC_DEFUN([ZFS_AC_GCOV_USER], [
|
|
||||||
+ DEBUG_CFLAGS="$DEBUG_CFLAGS -fprofile-arcs -ftest-coverage"
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
+AC_DEFUN([ZFS_AC_GCOV], [
|
|
||||||
+ AC_MSG_CHECKING([whether gcov profiling will be enabled])
|
|
||||||
+ AC_ARG_ENABLE([gcov],
|
|
||||||
+ [AS_HELP_STRING([--enable-gcov],
|
|
||||||
+ [Enable gcov profiling @<:@default=no@:>@])],
|
|
||||||
+ [],
|
|
||||||
+ [enable_gcov=no])
|
|
||||||
+
|
|
||||||
+ AS_CASE(["x$enable_gcov"],
|
|
||||||
+ ["xyes"],
|
|
||||||
+ [ZFS_AC_GCOV_KERNEL
|
|
||||||
+ ZFS_AC_GCOV_USER],
|
|
||||||
+ ["xkernel"],
|
|
||||||
+ [ZFS_AC_GCOV_KERNEL],
|
|
||||||
+ ["xuser"],
|
|
||||||
+ [ZFS_AC_GCOV_USER],
|
|
||||||
+ ["xno"],
|
|
||||||
+ [],
|
|
||||||
+ [AC_MSG_ERROR([Unknown option $enable_gcov])])
|
|
||||||
+
|
|
||||||
+ AC_SUBST(DEBUG_CFLAGS)
|
|
||||||
+ AC_MSG_RESULT([$enable_gcov])
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_BOOL_COMPARE
|
|
||||||
diff --git a/tests/zfs-tests/tests/functional/ctime/ctime_001_pos.ksh b/tests/zfs-tests/tests/functional/ctime/ctime_001_pos.ksh
|
|
||||||
old mode 100644
|
|
||||||
new mode 100755
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Date: Fri, 15 Sep 2017 11:47:11 -0700
|
|
||||||
Subject: [PATCH] Make "-fno-inline" compile option more accessible
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
When functions are inlined, it can make the system much more difficult
|
|
||||||
to instrument using tools such as ftrace, BPF, crash, etc. Thus, to aid
|
|
||||||
development and increase the system's observability, when the
|
|
||||||
"--enable-debuginfo" flag is specified, the "-fno-inline" compilation
|
|
||||||
option will be used for both userspace and kernel modules.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Closes #6605
|
|
||||||
(cherry picked from commit f1236ebf35d1531db75ac8a57b23e8fe48d6b780)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
config/zfs-build.m4 | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index b84658a64..c695a882e 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -45,10 +45,11 @@ AC_DEFUN([ZFS_AC_DEBUG], [
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_DEBUGINFO_KERNEL], [
|
|
||||||
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
|
|
||||||
+ KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_DEBUGINFO_USER], [
|
|
||||||
- DEBUG_CFLAGS="$DEBUG_CFLAGS -g"
|
|
||||||
+ DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_DEBUGINFO], [
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,399 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Date: Fri, 22 Sep 2017 18:49:57 -0700
|
|
||||||
Subject: [PATCH] Add support for "--enable-code-coverage" option
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
This change adds support for a new option that can be passed to the
|
|
||||||
configure script: "--enable-code-coverage". Further, the "--enable-gcov"
|
|
||||||
option has been removed, as this new option provides the same
|
|
||||||
functionality (plus more).
|
|
||||||
|
|
||||||
When using this new option the following make targets are available:
|
|
||||||
|
|
||||||
* check-code-coverage
|
|
||||||
* code-coverage-capture
|
|
||||||
* code-coverage-clean
|
|
||||||
|
|
||||||
Note: these make targets can only be run from the root of the project.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Closes #6670
|
|
||||||
(cherry picked from commit 6b278f3223c0322527836da2e11e33978e54a234)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
configure.ac | 2 +-
|
|
||||||
Makefile.am | 2 +
|
|
||||||
config/Rules.am | 2 +
|
|
||||||
config/ax_code_coverage.m4 | 264 +++++++++++++++++++++++++++++++++++++++++++++
|
|
||||||
config/zfs-build.m4 | 31 ------
|
|
||||||
5 files changed, 269 insertions(+), 32 deletions(-)
|
|
||||||
create mode 100644 config/ax_code_coverage.m4
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index ee754fd38..d71712e4c 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -50,13 +50,13 @@ AC_PROG_CC
|
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
AM_PROG_AS
|
|
||||||
AM_PROG_CC_C_O
|
|
||||||
+AX_CODE_COVERAGE
|
|
||||||
|
|
||||||
ZFS_AC_LICENSE
|
|
||||||
ZFS_AC_PACKAGE
|
|
||||||
ZFS_AC_CONFIG
|
|
||||||
ZFS_AC_DEBUG
|
|
||||||
ZFS_AC_DEBUGINFO
|
|
||||||
-ZFS_AC_GCOV
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
|
||||||
Makefile
|
|
||||||
diff --git a/Makefile.am b/Makefile.am
|
|
||||||
index 732a373bd..b539ff30f 100644
|
|
||||||
--- a/Makefile.am
|
|
||||||
+++ b/Makefile.am
|
|
||||||
@@ -23,6 +23,8 @@ EXTRA_DIST = autogen.sh copy-builtin
|
|
||||||
EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
|
|
||||||
EXTRA_DIST += META DISCLAIMER COPYRIGHT README.markdown OPENSOLARIS.LICENSE
|
|
||||||
|
|
||||||
+@CODE_COVERAGE_RULES@
|
|
||||||
+
|
|
||||||
distclean-local::
|
|
||||||
-$(RM) -R autom4te*.cache
|
|
||||||
-find . \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \
|
|
||||||
diff --git a/config/Rules.am b/config/Rules.am
|
|
||||||
index 1d39e7779..215f09c34 100644
|
|
||||||
--- a/config/Rules.am
|
|
||||||
+++ b/config/Rules.am
|
|
||||||
@@ -6,6 +6,7 @@ AM_CFLAGS += ${NO_UNUSED_BUT_SET_VARIABLE}
|
|
||||||
AM_CFLAGS += ${NO_BOOL_COMPARE}
|
|
||||||
AM_CFLAGS += -fno-strict-aliasing
|
|
||||||
AM_CFLAGS += -std=gnu99
|
|
||||||
+AM_CFLAGS += $(CODE_COVERAGE_CFLAGS)
|
|
||||||
AM_CPPFLAGS = -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT
|
|
||||||
AM_CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64
|
|
||||||
AM_CPPFLAGS += -D_LARGEFILE64_SOURCE -DHAVE_LARGE_STACKS=1
|
|
||||||
@@ -14,3 +15,4 @@ AM_CPPFLAGS += -DLIBEXECDIR=\"$(libexecdir)\"
|
|
||||||
AM_CPPFLAGS += -DRUNSTATEDIR=\"$(runstatedir)\"
|
|
||||||
AM_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"
|
|
||||||
AM_CPPFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\"
|
|
||||||
+AM_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
|
|
||||||
diff --git a/config/ax_code_coverage.m4 b/config/ax_code_coverage.m4
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000..6484f0332
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/config/ax_code_coverage.m4
|
|
||||||
@@ -0,0 +1,264 @@
|
|
||||||
+# ===========================================================================
|
|
||||||
+# https://www.gnu.org/software/autoconf-archive/ax_code_coverage.html
|
|
||||||
+# ===========================================================================
|
|
||||||
+#
|
|
||||||
+# SYNOPSIS
|
|
||||||
+#
|
|
||||||
+# AX_CODE_COVERAGE()
|
|
||||||
+#
|
|
||||||
+# DESCRIPTION
|
|
||||||
+#
|
|
||||||
+# Defines CODE_COVERAGE_CPPFLAGS, CODE_COVERAGE_CFLAGS,
|
|
||||||
+# CODE_COVERAGE_CXXFLAGS and CODE_COVERAGE_LIBS which should be included
|
|
||||||
+# in the CPPFLAGS, CFLAGS CXXFLAGS and LIBS/LIBADD variables of every
|
|
||||||
+# build target (program or library) which should be built with code
|
|
||||||
+# coverage support. Also defines CODE_COVERAGE_RULES which should be
|
|
||||||
+# substituted in your Makefile; and $enable_code_coverage which can be
|
|
||||||
+# used in subsequent configure output. CODE_COVERAGE_ENABLED is defined
|
|
||||||
+# and substituted, and corresponds to the value of the
|
|
||||||
+# --enable-code-coverage option, which defaults to being disabled.
|
|
||||||
+#
|
|
||||||
+# Test also for gcov program and create GCOV variable that could be
|
|
||||||
+# substituted.
|
|
||||||
+#
|
|
||||||
+# Note that all optimization flags in CFLAGS must be disabled when code
|
|
||||||
+# coverage is enabled.
|
|
||||||
+#
|
|
||||||
+# Usage example:
|
|
||||||
+#
|
|
||||||
+# configure.ac:
|
|
||||||
+#
|
|
||||||
+# AX_CODE_COVERAGE
|
|
||||||
+#
|
|
||||||
+# Makefile.am:
|
|
||||||
+#
|
|
||||||
+# @CODE_COVERAGE_RULES@
|
|
||||||
+# my_program_LIBS = ... $(CODE_COVERAGE_LIBS) ...
|
|
||||||
+# my_program_CPPFLAGS = ... $(CODE_COVERAGE_CPPFLAGS) ...
|
|
||||||
+# my_program_CFLAGS = ... $(CODE_COVERAGE_CFLAGS) ...
|
|
||||||
+# my_program_CXXFLAGS = ... $(CODE_COVERAGE_CXXFLAGS) ...
|
|
||||||
+#
|
|
||||||
+# This results in a "check-code-coverage" rule being added to any
|
|
||||||
+# Makefile.am which includes "@CODE_COVERAGE_RULES@" (assuming the module
|
|
||||||
+# has been configured with --enable-code-coverage). Running `make
|
|
||||||
+# check-code-coverage` in that directory will run the module's test suite
|
|
||||||
+# (`make check`) and build a code coverage report detailing the code which
|
|
||||||
+# was touched, then print the URI for the report.
|
|
||||||
+#
|
|
||||||
+# In earlier versions of this macro, CODE_COVERAGE_LDFLAGS was defined
|
|
||||||
+# instead of CODE_COVERAGE_LIBS. They are both still defined, but use of
|
|
||||||
+# CODE_COVERAGE_LIBS is preferred for clarity; CODE_COVERAGE_LDFLAGS is
|
|
||||||
+# deprecated. They have the same value.
|
|
||||||
+#
|
|
||||||
+# This code was derived from Makefile.decl in GLib, originally licenced
|
|
||||||
+# under LGPLv2.1+.
|
|
||||||
+#
|
|
||||||
+# LICENSE
|
|
||||||
+#
|
|
||||||
+# Copyright (c) 2012, 2016 Philip Withnall
|
|
||||||
+# Copyright (c) 2012 Xan Lopez
|
|
||||||
+# Copyright (c) 2012 Christian Persch
|
|
||||||
+# Copyright (c) 2012 Paolo Borelli
|
|
||||||
+# Copyright (c) 2012 Dan Winship
|
|
||||||
+# Copyright (c) 2015 Bastien ROUCARIES
|
|
||||||
+#
|
|
||||||
+# This library is free software; you can redistribute it and/or modify it
|
|
||||||
+# under the terms of the GNU Lesser General Public License as published by
|
|
||||||
+# the Free Software Foundation; either version 2.1 of the License, or (at
|
|
||||||
+# your option) any later version.
|
|
||||||
+#
|
|
||||||
+# This library is distributed in the hope that it will be useful, but
|
|
||||||
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
|
|
||||||
+# General Public License for more details.
|
|
||||||
+#
|
|
||||||
+# You should have received a copy of the GNU Lesser General Public License
|
|
||||||
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+#serial 25
|
|
||||||
+
|
|
||||||
+AC_DEFUN([AX_CODE_COVERAGE],[
|
|
||||||
+ dnl Check for --enable-code-coverage
|
|
||||||
+ AC_REQUIRE([AC_PROG_SED])
|
|
||||||
+
|
|
||||||
+ # allow to override gcov location
|
|
||||||
+ AC_ARG_WITH([gcov],
|
|
||||||
+ [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
|
|
||||||
+ [_AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov],
|
|
||||||
+ [_AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov])
|
|
||||||
+
|
|
||||||
+ AC_MSG_CHECKING([whether to build with code coverage support])
|
|
||||||
+ AC_ARG_ENABLE([code-coverage],
|
|
||||||
+ AS_HELP_STRING([--enable-code-coverage],
|
|
||||||
+ [Whether to enable code coverage support]),,
|
|
||||||
+ enable_code_coverage=no)
|
|
||||||
+
|
|
||||||
+ AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_ENABLED], [$enable_code_coverage])
|
|
||||||
+ AC_MSG_RESULT($enable_code_coverage)
|
|
||||||
+
|
|
||||||
+ AS_IF([ test "$enable_code_coverage" = "yes" ], [
|
|
||||||
+ # check for gcov
|
|
||||||
+ AC_CHECK_TOOL([GCOV],
|
|
||||||
+ [$_AX_CODE_COVERAGE_GCOV_PROG_WITH],
|
|
||||||
+ [:])
|
|
||||||
+ AS_IF([test "X$GCOV" = "X:"],
|
|
||||||
+ [AC_MSG_ERROR([gcov is needed to do coverage])])
|
|
||||||
+ AC_SUBST([GCOV])
|
|
||||||
+
|
|
||||||
+ dnl Check if gcc is being used
|
|
||||||
+ AS_IF([ test "$GCC" = "no" ], [
|
|
||||||
+ AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
|
|
||||||
+ ])
|
|
||||||
+
|
|
||||||
+ AC_CHECK_PROG([LCOV], [lcov], [lcov])
|
|
||||||
+ AC_CHECK_PROG([GENHTML], [genhtml], [genhtml])
|
|
||||||
+
|
|
||||||
+ AS_IF([ test -z "$LCOV" ], [
|
|
||||||
+ AC_MSG_ERROR([To enable code coverage reporting you must have lcov installed])
|
|
||||||
+ ])
|
|
||||||
+
|
|
||||||
+ AS_IF([ test -z "$GENHTML" ], [
|
|
||||||
+ AC_MSG_ERROR([Could not find genhtml from the lcov package])
|
|
||||||
+ ])
|
|
||||||
+
|
|
||||||
+ dnl Build the code coverage flags
|
|
||||||
+ dnl Define CODE_COVERAGE_LDFLAGS for backwards compatibility
|
|
||||||
+ CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
|
|
||||||
+ CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
|
||||||
+ CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
|
||||||
+ CODE_COVERAGE_LIBS="-lgcov"
|
|
||||||
+ CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
|
|
||||||
+
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_CPPFLAGS])
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_CFLAGS])
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_CXXFLAGS])
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_LIBS])
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_LDFLAGS])
|
|
||||||
+
|
|
||||||
+ [CODE_COVERAGE_RULES_CHECK='
|
|
||||||
+ -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
|
|
||||||
+ $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
|
|
||||||
+']
|
|
||||||
+ [CODE_COVERAGE_RULES_CAPTURE='
|
|
||||||
+ $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
|
|
||||||
+ $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
|
|
||||||
+ -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
|
|
||||||
+ $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
|
|
||||||
+ @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
|
|
||||||
+']
|
|
||||||
+ [CODE_COVERAGE_RULES_CLEAN='
|
|
||||||
+clean: code-coverage-clean
|
|
||||||
+distclean: code-coverage-clean
|
|
||||||
+code-coverage-clean:
|
|
||||||
+ -$(LCOV) --directory $(top_builddir) -z
|
|
||||||
+ -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
|
|
||||||
+ -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
|
|
||||||
+']
|
|
||||||
+ ], [
|
|
||||||
+ [CODE_COVERAGE_RULES_CHECK='
|
|
||||||
+ @echo "Need to reconfigure with --enable-code-coverage"
|
|
||||||
+']
|
|
||||||
+ CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
|
|
||||||
+ CODE_COVERAGE_RULES_CLEAN=''
|
|
||||||
+ ])
|
|
||||||
+
|
|
||||||
+[CODE_COVERAGE_RULES='
|
|
||||||
+# Code coverage
|
|
||||||
+#
|
|
||||||
+# Optional:
|
|
||||||
+# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
|
|
||||||
+# Multiple directories may be specified, separated by whitespace.
|
|
||||||
+# (Default: $(top_builddir))
|
|
||||||
+# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
|
|
||||||
+# by lcov for code coverage. (Default:
|
|
||||||
+# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
|
|
||||||
+# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
|
|
||||||
+# reports to be created. (Default:
|
|
||||||
+# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
|
|
||||||
+# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
|
|
||||||
+# set to 0 to disable it and leave empty to stay with the default.
|
|
||||||
+# (Default: empty)
|
|
||||||
+# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
|
|
||||||
+# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
|
|
||||||
+# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
|
|
||||||
+# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
|
|
||||||
+# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
|
|
||||||
+# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
|
|
||||||
+# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
|
|
||||||
+# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
|
|
||||||
+# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
|
|
||||||
+# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
|
|
||||||
+# lcov instance. (Default: empty)
|
|
||||||
+# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
|
|
||||||
+# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
|
|
||||||
+# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
|
|
||||||
+# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
|
|
||||||
+# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
|
|
||||||
+# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
|
|
||||||
+# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
|
|
||||||
+#
|
|
||||||
+# The generated report will be titled using the $(PACKAGE_NAME) and
|
|
||||||
+# $(PACKAGE_VERSION). In order to add the current git hash to the title,
|
|
||||||
+# use the git-version-gen script, available online.
|
|
||||||
+
|
|
||||||
+# Optional variables
|
|
||||||
+CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
|
|
||||||
+CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
|
|
||||||
+CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
|
|
||||||
+CODE_COVERAGE_BRANCH_COVERAGE ?=
|
|
||||||
+CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
|
|
||||||
+--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
|
|
||||||
+CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
|
|
||||||
+CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
|
|
||||||
+CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
|
|
||||||
+CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
|
|
||||||
+CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
|
|
||||||
+CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
|
|
||||||
+CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
|
|
||||||
+$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
|
|
||||||
+--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
|
|
||||||
+CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
|
|
||||||
+CODE_COVERAGE_IGNORE_PATTERN ?=
|
|
||||||
+
|
|
||||||
+GITIGNOREFILES ?=
|
|
||||||
+GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
|
|
||||||
+
|
|
||||||
+code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
|
|
||||||
+code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
|
|
||||||
+code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
|
|
||||||
+ $(CODE_COVERAGE_OUTPUT_FILE);
|
|
||||||
+code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
|
|
||||||
+code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
|
|
||||||
+code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
|
|
||||||
+ $(CODE_COVERAGE_IGNORE_PATTERN);
|
|
||||||
+code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
|
|
||||||
+code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
|
|
||||||
+code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
|
|
||||||
+code_coverage_quiet = $(code_coverage_quiet_$(V))
|
|
||||||
+code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
|
|
||||||
+code_coverage_quiet_0 = --quiet
|
|
||||||
+
|
|
||||||
+# sanitizes the test-name: replaces with underscores: dashes and dots
|
|
||||||
+code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
|
|
||||||
+
|
|
||||||
+# Use recursive makes in order to ignore errors during check
|
|
||||||
+check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
|
|
||||||
+
|
|
||||||
+# Capture code coverage data
|
|
||||||
+code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
|
|
||||||
+
|
|
||||||
+# Hook rule executed before code-coverage-capture, overridable by the user
|
|
||||||
+code-coverage-capture-hook:
|
|
||||||
+
|
|
||||||
+'"$CODE_COVERAGE_RULES_CLEAN"'
|
|
||||||
+
|
|
||||||
+A''M_DISTCHECK_CONFIGURE_FLAGS ?=
|
|
||||||
+A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
|
|
||||||
+
|
|
||||||
+.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
|
|
||||||
+']
|
|
||||||
+
|
|
||||||
+ AC_SUBST([CODE_COVERAGE_RULES])
|
|
||||||
+ m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([CODE_COVERAGE_RULES])])
|
|
||||||
+])
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index c695a882e..17cc80462 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -76,37 +76,6 @@ AC_DEFUN([ZFS_AC_DEBUGINFO], [
|
|
||||||
AC_MSG_RESULT([$enable_debuginfo])
|
|
||||||
])
|
|
||||||
|
|
||||||
-AC_DEFUN([ZFS_AC_GCOV_KERNEL], [
|
|
||||||
-])
|
|
||||||
-
|
|
||||||
-AC_DEFUN([ZFS_AC_GCOV_USER], [
|
|
||||||
- DEBUG_CFLAGS="$DEBUG_CFLAGS -fprofile-arcs -ftest-coverage"
|
|
||||||
-])
|
|
||||||
-
|
|
||||||
-AC_DEFUN([ZFS_AC_GCOV], [
|
|
||||||
- AC_MSG_CHECKING([whether gcov profiling will be enabled])
|
|
||||||
- AC_ARG_ENABLE([gcov],
|
|
||||||
- [AS_HELP_STRING([--enable-gcov],
|
|
||||||
- [Enable gcov profiling @<:@default=no@:>@])],
|
|
||||||
- [],
|
|
||||||
- [enable_gcov=no])
|
|
||||||
-
|
|
||||||
- AS_CASE(["x$enable_gcov"],
|
|
||||||
- ["xyes"],
|
|
||||||
- [ZFS_AC_GCOV_KERNEL
|
|
||||||
- ZFS_AC_GCOV_USER],
|
|
||||||
- ["xkernel"],
|
|
||||||
- [ZFS_AC_GCOV_KERNEL],
|
|
||||||
- ["xuser"],
|
|
||||||
- [ZFS_AC_GCOV_USER],
|
|
||||||
- ["xno"],
|
|
||||||
- [],
|
|
||||||
- [AC_MSG_ERROR([Unknown option $enable_gcov])])
|
|
||||||
-
|
|
||||||
- AC_SUBST(DEBUG_CFLAGS)
|
|
||||||
- AC_MSG_RESULT([$enable_gcov])
|
|
||||||
-])
|
|
||||||
-
|
|
||||||
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE
|
|
||||||
ZFS_AC_CONFIG_ALWAYS_NO_BOOL_COMPARE
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Fri, 22 Sep 2017 18:54:34 -0700
|
|
||||||
Subject: [PATCH] Update codecov.yml
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Update the codecov.yml to make the following functional changes.
|
|
||||||
|
|
||||||
* Do not require the CI testing to pass before posting results.
|
|
||||||
* Set red-yellow-green coverage percent from 50%-100%
|
|
||||||
* Allow a 1% drop in coverage to still be considered a pass.
|
|
||||||
* Reduce the size of the comment posted to the issue.
|
|
||||||
|
|
||||||
Additionally, the top level README.markdown has been updated
|
|
||||||
to include the codecov.io badge and the project summary reworded.
|
|
||||||
|
|
||||||
Reviewed-by: Prakash Surya <prakash.surya@delphix.com>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #6669
|
|
||||||
(cherry picked from commit 3790bfa80f9b26fd750b4a554c5707b9d380aac4)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
README.markdown | 12 ++++++------
|
|
||||||
.github/codecov.yml | 31 ++++++++++++++++++++++++++-----
|
|
||||||
2 files changed, 32 insertions(+), 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/README.markdown b/README.markdown
|
|
||||||
index fd2ca8c86..1c305b35d 100644
|
|
||||||
--- a/README.markdown
|
|
||||||
+++ b/README.markdown
|
|
||||||
@@ -1,9 +1,9 @@
|
|
||||||
-<p align="center"><img src="http://zfsonlinux.org/images/zfs-linux.png"/></p>
|
|
||||||
-ZFS is an advanced file system and volume manager which was originally
|
|
||||||
-developed for Solaris and is now maintained by the Illumos community.
|
|
||||||
+
|
|
||||||
|
|
||||||
-ZFS on Linux, which is also known as ZoL, is currently feature complete. It
|
|
||||||
-includes fully functional and stable SPA, DMU, ZVOL, and ZPL layers. And it's native!
|
|
||||||
+ZFS on Linux is an advanced file system and volume manager which was originally
|
|
||||||
+developed for Solaris and is now maintained by the OpenZFS community.
|
|
||||||
+
|
|
||||||
+[](https://codecov.io/gh/zfsonlinux/zfs)
|
|
||||||
|
|
||||||
# Official Resources
|
|
||||||
* [Site](http://zfsonlinux.org)
|
|
||||||
@@ -16,4 +16,4 @@ Full documentation for installing ZoL on your favorite Linux distribution can
|
|
||||||
be found at [our site](http://zfsonlinux.org/).
|
|
||||||
|
|
||||||
# Contribute & Develop
|
|
||||||
-We have a separate document with [contribution guidelines](./.github/CONTRIBUTING.md).
|
|
||||||
\ No newline at end of file
|
|
||||||
+We have a separate document with [contribution guidelines](./.github/CONTRIBUTING.md).
|
|
||||||
diff --git a/.github/codecov.yml b/.github/codecov.yml
|
|
||||||
index f36be39cb..e74c59a0f 100644
|
|
||||||
--- a/.github/codecov.yml
|
|
||||||
+++ b/.github/codecov.yml
|
|
||||||
@@ -1,9 +1,30 @@
|
|
||||||
codecov:
|
|
||||||
- strict_yaml_branch: master # only use the latest copy on master branch
|
|
||||||
-
|
|
||||||
-comment: off
|
|
||||||
+ notify:
|
|
||||||
+ require_ci_to_pass: no
|
|
||||||
|
|
||||||
coverage:
|
|
||||||
+ precision: 2
|
|
||||||
+ round: down
|
|
||||||
+ range: "50...100"
|
|
||||||
+
|
|
||||||
status:
|
|
||||||
- project: off
|
|
||||||
- patch: off
|
|
||||||
+ project:
|
|
||||||
+ default:
|
|
||||||
+ threshold: 1%
|
|
||||||
+
|
|
||||||
+ patch:
|
|
||||||
+ default:
|
|
||||||
+ threshold: 1%
|
|
||||||
+
|
|
||||||
+parsers:
|
|
||||||
+ gcov:
|
|
||||||
+ branch_detection:
|
|
||||||
+ conditional: yes
|
|
||||||
+ loop: yes
|
|
||||||
+ method: no
|
|
||||||
+ macro: no
|
|
||||||
+
|
|
||||||
+comment:
|
|
||||||
+ layout: "header, sunburst, diff"
|
|
||||||
+ behavior: default
|
|
||||||
+ require_changes: no
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Fri, 22 Sep 2017 22:16:18 -0700
|
|
||||||
Subject: [PATCH] Fix "--enable-code-coverage" debug build
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
When --enable-code-coverage is provided it should not result
|
|
||||||
in NDEBUG being defined. This is controlled by --enable-debug.
|
|
||||||
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes #6674
|
|
||||||
(cherry picked from commit 6897ea475fd0c82a74edacf374d4e339f9a9b86b)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
config/ax_code_coverage.m4 | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/config/ax_code_coverage.m4 b/config/ax_code_coverage.m4
|
|
||||||
index 6484f0332..4417d4444 100644
|
|
||||||
--- a/config/ax_code_coverage.m4
|
|
||||||
+++ b/config/ax_code_coverage.m4
|
|
||||||
@@ -124,7 +124,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
|
|
||||||
|
|
||||||
dnl Build the code coverage flags
|
|
||||||
dnl Define CODE_COVERAGE_LDFLAGS for backwards compatibility
|
|
||||||
- CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
|
|
||||||
+ CODE_COVERAGE_CPPFLAGS=""
|
|
||||||
CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
|
||||||
CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
|
|
||||||
CODE_COVERAGE_LIBS="-lgcov"
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Date: Thu, 19 Oct 2017 10:06:55 -0700
|
|
||||||
Subject: [PATCH] Remove vn_rename and vn_remove dependency
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
The only place vn_rename and vn_remove are used is when writing
|
|
||||||
out an updated pool configuration file. By truncating the file
|
|
||||||
instead of renaming and removing it we can avoid having to implement
|
|
||||||
these interfaces entirely. Functionally an empty cache file is
|
|
||||||
treated the same as a missing cache file. This is particularly
|
|
||||||
advantageous because the Linux kernel has never provided a way
|
|
||||||
to reliably implement vn_rename and vn_remove.
|
|
||||||
|
|
||||||
The cachefile_004_pos.ksh test case was updated to understand
|
|
||||||
that an empty cache file is the same as a missing one.
|
|
||||||
|
|
||||||
The zfs-import-* systemd service files were not updated to use
|
|
||||||
ConditionFileNotEmpty in place of ConditionPathExists. This
|
|
||||||
means that after exporting all pools and rebooting new pools
|
|
||||||
will not the scanned for on the next boot. This small change
|
|
||||||
should not impact normal usage since pools are not exported
|
|
||||||
as part of a normal shutdown.
|
|
||||||
|
|
||||||
Documentation was updated accordingly.
|
|
||||||
|
|
||||||
Reviewed-by: George Melikov <mail@gmelikov.ru>
|
|
||||||
Reviewed-by: Arkadiusz Bubała <arkadiusz.bubala@open-e.com>
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Closes zfsonlinux/spl#648
|
|
||||||
Closes #6753
|
|
||||||
(cherry picked from commit 5d62588032aa1d13d7f789cf564a0d20c77a5762)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/zfs/spa_config.c | 34 ++++++++++++++++++----
|
|
||||||
man/man8/zpool.8 | 2 +-
|
|
||||||
.../functional/cachefile/cachefile_004_pos.ksh | 6 ++--
|
|
||||||
3 files changed, 32 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/module/zfs/spa_config.c b/module/zfs/spa_config.c
|
|
||||||
index 5b792b868..fea239014 100644
|
|
||||||
--- a/module/zfs/spa_config.c
|
|
||||||
+++ b/module/zfs/spa_config.c
|
|
||||||
@@ -147,6 +147,26 @@ out:
|
|
||||||
kobj_close_file(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
+static int
|
|
||||||
+spa_config_remove(spa_config_dirent_t *dp)
|
|
||||||
+{
|
|
||||||
+#if defined(__linux__) && defined(_KERNEL)
|
|
||||||
+ int error, flags = FWRITE | FTRUNC;
|
|
||||||
+ uio_seg_t seg = UIO_SYSSPACE;
|
|
||||||
+ vnode_t *vp;
|
|
||||||
+
|
|
||||||
+ error = vn_open(dp->scd_path, seg, flags, 0644, &vp, 0, 0);
|
|
||||||
+ if (error == 0) {
|
|
||||||
+ (void) VOP_FSYNC(vp, FSYNC, kcred, NULL);
|
|
||||||
+ (void) VOP_CLOSE(vp, 0, 1, 0, kcred, NULL);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return (error);
|
|
||||||
+#else
|
|
||||||
+ return (vn_remove(dp->scd_path, UIO_SYSSPACE, RMFILE));
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
static int
|
|
||||||
spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl)
|
|
||||||
{
|
|
||||||
@@ -161,7 +181,10 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl)
|
|
||||||
* If the nvlist is empty (NULL), then remove the old cachefile.
|
|
||||||
*/
|
|
||||||
if (nvl == NULL) {
|
|
||||||
- err = vn_remove(dp->scd_path, UIO_SYSSPACE, RMFILE);
|
|
||||||
+ err = spa_config_remove(dp);
|
|
||||||
+ if (err == ENOENT)
|
|
||||||
+ err = 0;
|
|
||||||
+
|
|
||||||
return (err);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -174,9 +197,9 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl)
|
|
||||||
#if defined(__linux__) && defined(_KERNEL)
|
|
||||||
/*
|
|
||||||
* Write the configuration to disk. Due to the complexity involved
|
|
||||||
- * in performing a rename from within the kernel the file is truncated
|
|
||||||
- * and overwritten in place. In the event of an error the file is
|
|
||||||
- * unlinked to make sure we always have a consistent view of the data.
|
|
||||||
+ * in performing a rename and remove from within the kernel the file
|
|
||||||
+ * is instead truncated and overwritten in place. This way we always
|
|
||||||
+ * have a consistent view of the data or a zero length file.
|
|
||||||
*/
|
|
||||||
err = vn_open(dp->scd_path, UIO_SYSSPACE, oflags, 0644, &vp, 0, 0);
|
|
||||||
if (err == 0) {
|
|
||||||
@@ -186,9 +209,8 @@ spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl)
|
|
||||||
err = VOP_FSYNC(vp, FSYNC, kcred, NULL);
|
|
||||||
|
|
||||||
(void) VOP_CLOSE(vp, oflags, 1, 0, kcred, NULL);
|
|
||||||
-
|
|
||||||
if (err)
|
|
||||||
- (void) vn_remove(dp->scd_path, UIO_SYSSPACE, RMFILE);
|
|
||||||
+ (void) spa_config_remove(dp);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
/*
|
|
||||||
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8
|
|
||||||
index 328ba3dce..22579101a 100644
|
|
||||||
--- a/man/man8/zpool.8
|
|
||||||
+++ b/man/man8/zpool.8
|
|
||||||
@@ -655,7 +655,7 @@ Because the kernel destroys and recreates this file when pools are added and
|
|
||||||
removed, care should be taken when attempting to access this file.
|
|
||||||
When the last pool using a
|
|
||||||
.Sy cachefile
|
|
||||||
-is exported or destroyed, the file is removed.
|
|
||||||
+is exported or destroyed, the file will be empty.
|
|
||||||
.It Sy comment Ns = Ns Ar text
|
|
||||||
A text string consisting of printable ASCII characters that will be stored
|
|
||||||
such that it is available even if the pool becomes faulted.
|
|
||||||
diff --git a/tests/zfs-tests/tests/functional/cachefile/cachefile_004_pos.ksh b/tests/zfs-tests/tests/functional/cachefile/cachefile_004_pos.ksh
|
|
||||||
index ae54a9365..e0b81e166 100755
|
|
||||||
--- a/tests/zfs-tests/tests/functional/cachefile/cachefile_004_pos.ksh
|
|
||||||
+++ b/tests/zfs-tests/tests/functional/cachefile/cachefile_004_pos.ksh
|
|
||||||
@@ -98,13 +98,13 @@ log_must zpool set cachefile=$CPATH2 $TESTPOOL1
|
|
||||||
log_must pool_in_cache $TESTPOOL1 $CPATH2
|
|
||||||
log_must zpool set cachefile=$CPATH2 $TESTPOOL2
|
|
||||||
log_must pool_in_cache $TESTPOOL2 $CPATH2
|
|
||||||
-if [[ -f $CPATH1 ]]; then
|
|
||||||
+if [[ -s $CPATH1 ]]; then
|
|
||||||
log_fail "Verify set when cachefile is set on pool."
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_must zpool export $TESTPOOL1
|
|
||||||
log_must zpool export $TESTPOOL2
|
|
||||||
-if [[ -f $CPATH2 ]]; then
|
|
||||||
+if [[ -s $CPATH2 ]]; then
|
|
||||||
log_fail "Verify export when cachefile is set on pool."
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ log_must pool_in_cache $TESTPOOL2 $CPATH2
|
|
||||||
|
|
||||||
log_must zpool destroy $TESTPOOL1
|
|
||||||
log_must zpool destroy $TESTPOOL2
|
|
||||||
-if [[ -f $CPATH2 ]]; then
|
|
||||||
+if [[ -s $CPATH2 ]]; then
|
|
||||||
log_fail "Verify destroy when cachefile is set on pool."
|
|
||||||
fi
|
|
||||||
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: LOLi <loli10K@users.noreply.github.com>
|
|
||||||
Date: Sun, 17 Dec 2017 23:08:48 +0100
|
|
||||||
Subject: [PATCH] Fix --with-systemd on Debian-based distributions (#6963)
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
These changes propagate the "--with-systemd" configure option to the
|
|
||||||
RPM spec file, allowing Debian-based distributions to package
|
|
||||||
systemd-related files.
|
|
||||||
|
|
||||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
|
|
||||||
Closes #6591
|
|
||||||
Closes #6963
|
|
||||||
(cherry picked from commit 03658d5081c64e14898cc9be45da3305b27fac9e)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
rpm/generic/zfs.spec.in | 2 +-
|
|
||||||
config/user-systemd.m4 | 20 ++++++++++++++++----
|
|
||||||
config/zfs-build.m4 | 2 +-
|
|
||||||
3 files changed, 18 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
|
|
||||||
index 8df57fa46..4a911b4c2 100644
|
|
||||||
--- a/rpm/generic/zfs.spec.in
|
|
||||||
+++ b/rpm/generic/zfs.spec.in
|
|
||||||
@@ -87,11 +87,11 @@ BuildRequires: libblkid-devel
|
|
||||||
BuildRequires: libudev-devel
|
|
||||||
BuildRequires: libattr-devel
|
|
||||||
%endif
|
|
||||||
+
|
|
||||||
%if 0%{?_systemd}
|
|
||||||
Requires(post): systemd
|
|
||||||
Requires(preun): systemd
|
|
||||||
Requires(postun): systemd
|
|
||||||
-BuildRequires: systemd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# The zpool iostat/status -c scripts call some utilities like lsblk and iostat
|
|
||||||
diff --git a/config/user-systemd.m4 b/config/user-systemd.m4
|
|
||||||
index c2105abce..de2a44f10 100644
|
|
||||||
--- a/config/user-systemd.m4
|
|
||||||
+++ b/config/user-systemd.m4
|
|
||||||
@@ -2,7 +2,8 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
|
|
||||||
AC_ARG_ENABLE(systemd,
|
|
||||||
AC_HELP_STRING([--enable-systemd],
|
|
||||||
[install systemd unit/preset files [[default: yes]]]),
|
|
||||||
- [],enable_systemd=yes)
|
|
||||||
+ [enable_systemd=$enableval],
|
|
||||||
+ [enable_systemd=check])
|
|
||||||
|
|
||||||
AC_ARG_WITH(systemdunitdir,
|
|
||||||
AC_HELP_STRING([--with-systemdunitdir=DIR],
|
|
||||||
@@ -19,16 +20,27 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
|
|
||||||
[install systemd module load files into dir [[/usr/lib/modules-load.d]]]),
|
|
||||||
systemdmoduleloaddir=$withval,systemdmodulesloaddir=/usr/lib/modules-load.d)
|
|
||||||
|
|
||||||
+ AS_IF([test "x$enable_systemd" = xcheck], [
|
|
||||||
+ AS_IF([systemctl --version >/dev/null 2>&1],
|
|
||||||
+ [enable_systemd=yes],
|
|
||||||
+ [enable_systemd=no])
|
|
||||||
+ ])
|
|
||||||
|
|
||||||
- AS_IF([test "x$enable_systemd" = xyes],
|
|
||||||
- [
|
|
||||||
+ AC_MSG_CHECKING(for systemd support)
|
|
||||||
+ AC_MSG_RESULT([$enable_systemd])
|
|
||||||
+
|
|
||||||
+ AS_IF([test "x$enable_systemd" = xyes], [
|
|
||||||
ZFS_INIT_SYSTEMD=systemd
|
|
||||||
ZFS_MODULE_LOAD=modules-load.d
|
|
||||||
+ DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
|
|
||||||
modulesloaddir=$systemdmodulesloaddir
|
|
||||||
- ])
|
|
||||||
+ ],[
|
|
||||||
+ DEFINE_SYSTEMD='--without systemd'
|
|
||||||
+ ])
|
|
||||||
|
|
||||||
AC_SUBST(ZFS_INIT_SYSTEMD)
|
|
||||||
AC_SUBST(ZFS_MODULE_LOAD)
|
|
||||||
+ AC_SUBST(DEFINE_SYSTEMD)
|
|
||||||
AC_SUBST(systemdunitdir)
|
|
||||||
AC_SUBST(systemdpresetdir)
|
|
||||||
AC_SUBST(modulesloaddir)
|
|
||||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
|
||||||
index 17cc80462..5eaa49c87 100644
|
|
||||||
--- a/config/zfs-build.m4
|
|
||||||
+++ b/config/zfs-build.m4
|
|
||||||
@@ -160,7 +160,7 @@ AC_DEFUN([ZFS_AC_RPM], [
|
|
||||||
])
|
|
||||||
|
|
||||||
RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
|
|
||||||
- RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
|
|
||||||
+ RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS) $(DEFINE_SYSTEMD)'
|
|
||||||
RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
|
|
||||||
RPM_DEFINE_DKMS=
|
|
||||||
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: LOLi <loli10K@users.noreply.github.com>
|
|
||||||
Date: Tue, 19 Dec 2017 19:49:33 +0100
|
|
||||||
Subject: [PATCH] ZTS: Fix create-o_ashift test case
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
The function that fills the uberblock ring buffer on every device label
|
|
||||||
has been reworked to avoid occasional failures caused by a race
|
|
||||||
condition that prevents 'zpool sync' from writing some uberblock
|
|
||||||
sequentially: this happens when the pool sync ioctl dispatch code calls
|
|
||||||
txg_wait_synced() while we're already waiting for a TXG to sync.
|
|
||||||
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
|
|
||||||
Closes #6924
|
|
||||||
Closes #6977
|
|
||||||
(cherry picked from commit 6c891ade8bee9c54484d5cf9b939582b7a9b7eeb)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
cmd/zdb/zdb.c | 8 ++--
|
|
||||||
.../cli_root/zpool_create/create-o_ashift.ksh | 47 ++++++++++------------
|
|
||||||
2 files changed, 26 insertions(+), 29 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
|
|
||||||
index 1097501e8..442685486 100644
|
|
||||||
--- a/cmd/zdb/zdb.c
|
|
||||||
+++ b/cmd/zdb/zdb.c
|
|
||||||
@@ -2716,10 +2716,6 @@ dump_label(const char *dev)
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (ioctl(fd, BLKFLSBUF) != 0)
|
|
||||||
- (void) printf("failed to invalidate cache '%s' : %s\n", path,
|
|
||||||
- strerror(errno));
|
|
||||||
-
|
|
||||||
if (fstat64_blk(fd, &statbuf) != 0) {
|
|
||||||
(void) printf("failed to stat '%s': %s\n", path,
|
|
||||||
strerror(errno));
|
|
||||||
@@ -2727,6 +2723,10 @@ dump_label(const char *dev)
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (S_ISBLK(statbuf.st_mode) && ioctl(fd, BLKFLSBUF) != 0)
|
|
||||||
+ (void) printf("failed to invalidate cache '%s' : %s\n", path,
|
|
||||||
+ strerror(errno));
|
|
||||||
+
|
|
||||||
avl_create(&config_tree, cksum_record_compare,
|
|
||||||
sizeof (cksum_record_t), offsetof(cksum_record_t, link));
|
|
||||||
avl_create(&uberblock_tree, cksum_record_compare,
|
|
||||||
diff --git a/tests/zfs-tests/tests/functional/cli_root/zpool_create/create-o_ashift.ksh b/tests/zfs-tests/tests/functional/cli_root/zpool_create/create-o_ashift.ksh
|
|
||||||
index 6449c8a91..6a9c3e28c 100755
|
|
||||||
--- a/tests/zfs-tests/tests/functional/cli_root/zpool_create/create-o_ashift.ksh
|
|
||||||
+++ b/tests/zfs-tests/tests/functional/cli_root/zpool_create/create-o_ashift.ksh
|
|
||||||
@@ -44,47 +44,45 @@ verify_runnable "global"
|
|
||||||
|
|
||||||
function cleanup
|
|
||||||
{
|
|
||||||
- poolexists $TESTPOOL && destroy_pool $TESTPOOL
|
|
||||||
+ destroy_pool $TESTPOOL
|
|
||||||
log_must rm -f $disk
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
-# Commit the specified number of TXGs to the provided pool
|
|
||||||
-# We use 'zpool sync' here because we can't force it via sync(1) like on illumos
|
|
||||||
-# $1 pool name
|
|
||||||
-# $2 number of txg syncs
|
|
||||||
+# Fill the uberblock ring in every <device> label: we do this by committing
|
|
||||||
+# TXGs to the provided <pool> until every slot contains a valid uberblock.
|
|
||||||
+# NOTE: We use 'zpool sync' here because we can't force it via sync(1) like on
|
|
||||||
+# illumos
|
|
||||||
#
|
|
||||||
-function txg_sync
|
|
||||||
+function write_device_uberblocks # <device> <pool>
|
|
||||||
{
|
|
||||||
- typeset pool=$1
|
|
||||||
- typeset -i count=$2
|
|
||||||
- typeset -i i=0;
|
|
||||||
+ typeset device=$1
|
|
||||||
+ typeset pool=$2
|
|
||||||
|
|
||||||
- while [ $i -lt $count ]
|
|
||||||
+ while [ "$(zdb -quuul $device | grep -c 'invalid')" -ne 0 ]
|
|
||||||
do
|
|
||||||
- log_must sync_pool $pool true
|
|
||||||
- ((i = i + 1))
|
|
||||||
+ sync_pool $pool true
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
-# Verify device $1 labels contains $2 valid uberblocks in every label
|
|
||||||
-# $1 device
|
|
||||||
-# $2 uberblocks count
|
|
||||||
+# Verify every label on <device> contains <count> (valid) uberblocks
|
|
||||||
#
|
|
||||||
-function verify_device_uberblocks
|
|
||||||
+function verify_device_uberblocks # <device> <count>
|
|
||||||
{
|
|
||||||
typeset device=$1
|
|
||||||
typeset ubcount=$2
|
|
||||||
|
|
||||||
zdb -quuul $device | egrep '^(\s+)?Uberblock' |
|
|
||||||
- egrep -v 'invalid$' | awk \
|
|
||||||
- -v ubcount=$ubcount '{ uberblocks[$0]++; }
|
|
||||||
- END { for (i in uberblocks) {
|
|
||||||
- count++;
|
|
||||||
- if (uberblocks[i] != 4) { exit 1; }
|
|
||||||
- }
|
|
||||||
- if (count != ubcount) { exit 1; } }'
|
|
||||||
+ awk -v ubcount=$ubcount 'BEGIN { count=0 } { uberblocks[$0]++; }
|
|
||||||
+ END {
|
|
||||||
+ for (i in uberblocks) {
|
|
||||||
+ if (i ~ /invalid/) { continue; }
|
|
||||||
+ if (uberblocks[i] != 4) { exit 1; }
|
|
||||||
+ count++;
|
|
||||||
+ }
|
|
||||||
+ if (count != ubcount) { exit 1; }
|
|
||||||
+ }'
|
|
||||||
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
@@ -110,8 +108,7 @@ do
|
|
||||||
log_fail "Pool was created without setting ashift value to "\
|
|
||||||
"$ashift (current = $pprop)"
|
|
||||||
fi
|
|
||||||
- # force 128 txg sync to fill the uberblock ring
|
|
||||||
- txg_sync $TESTPOOL 128
|
|
||||||
+ write_device_uberblocks $disk $TESTPOOL
|
|
||||||
verify_device_uberblocks $disk ${ubcount[$i]}
|
|
||||||
if [[ $? -ne 0 ]]
|
|
||||||
then
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "John L. Hammond" <35266395+jhammond-intel@users.noreply.github.com>
|
|
||||||
Date: Wed, 17 Jan 2018 14:24:42 -0600
|
|
||||||
Subject: [PATCH] Emit an error message before MMP suspends pool
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
In mmp_thread(), emit an MMP specific error message before calling
|
|
||||||
zio_suspend() so that the administrator will understand why the pool
|
|
||||||
is being suspended.
|
|
||||||
|
|
||||||
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
|
|
||||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
|
||||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
|
||||||
Signed-off-by: John L. Hammond <john.hammond@intel.com>
|
|
||||||
Closes #7048
|
|
||||||
(cherry picked from commit ecc972c7f009e1fa75900e276a4c1306c55b5722)
|
|
||||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
||||||
---
|
|
||||||
module/zfs/mmp.c | 5 +++++
|
|
||||||
1 file changed, 5 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c
|
|
||||||
index 6f2aa3f59..e91ae628a 100644
|
|
||||||
--- a/module/zfs/mmp.c
|
|
||||||
+++ b/module/zfs/mmp.c
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
#include <sys/mmp.h>
|
|
||||||
#include <sys/spa.h>
|
|
||||||
#include <sys/spa_impl.h>
|
|
||||||
+#include <sys/time.h>
|
|
||||||
#include <sys/vdev.h>
|
|
||||||
#include <sys/vdev_impl.h>
|
|
||||||
#include <sys/zfs_context.h>
|
|
||||||
@@ -428,6 +429,10 @@ mmp_thread(spa_t *spa)
|
|
||||||
*/
|
|
||||||
if (!suspended && mmp_fail_intervals && multihost &&
|
|
||||||
(start - mmp->mmp_last_write) > max_fail_ns) {
|
|
||||||
+ cmn_err(CE_WARN, "MMP writes to pool '%s' have not "
|
|
||||||
+ "succeeded in over %llus; suspending pool",
|
|
||||||
+ spa_name(spa),
|
|
||||||
+ NSEC2SEC(start - mmp->mmp_last_write));
|
|
||||||
zio_suspend(spa, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user