Compare commits
159 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 484fdeae51 | |||
| 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 |
+3
-6
@@ -1,6 +1,3 @@
|
||||
[submodule "zfs-debian"]
|
||||
path = zfs-debian
|
||||
url = ../mirror_zfs-debian
|
||||
[submodule "spl-debian"]
|
||||
path = spl-debian
|
||||
url = ../mirror_spl-debian
|
||||
[submodule "zfs/upstream"]
|
||||
path = upstream
|
||||
url = ../mirror_zfs
|
||||
|
||||
@@ -1,37 +1,46 @@
|
||||
RELEASE=5.1
|
||||
|
||||
# source form https://github.com/zfsonlinux/
|
||||
|
||||
ZFSVER=0.7.7
|
||||
ZFSPKGREL=pve2~bpo9
|
||||
SPLPKGREL=pve1~bpo9
|
||||
ZFSPKGVER=${ZFSVER}-${ZFSPKGREL}
|
||||
SPLPKGVER=${ZFSVER}-${SPLPKGREL}
|
||||
ZFSPKG=debian
|
||||
ZFSVER != dpkg-parsechangelog -l ${ZFSPKG}/changelog -Sversion | cut -d- -f1
|
||||
ZFSPKGVER != dpkg-parsechangelog -l ${ZFSPKG}/changelog -Sversion
|
||||
ZFSDIR=zfs-linux_${ZFSVER}
|
||||
ZFSSRC=upstream
|
||||
|
||||
SPLDIR=spl-build
|
||||
SPLSRC=spl-debian
|
||||
ZFSDIR=zfs-build
|
||||
ZFSSRC=zfs-debian
|
||||
ZFS_DEB1= libnvpair3linux_${ZFSPKGVER}_amd64.deb
|
||||
|
||||
SPL_DEBS= \
|
||||
spl_${SPLPKGVER}_amd64.deb
|
||||
ZFS_DEB_BINARY = \
|
||||
libpam-zfs_${ZFSPKGVER}_amd64.deb \
|
||||
libuutil3linux_${ZFSPKGVER}_amd64.deb \
|
||||
libzfs4linux_${ZFSPKGVER}_amd64.deb \
|
||||
libzfsbootenv1linux_${ZFSPKGVER}_amd64.deb \
|
||||
libzpool4linux_${ZFSPKGVER}_amd64.deb \
|
||||
zfs-test_${ZFSPKGVER}_amd64.deb \
|
||||
zfsutils-linux_${ZFSPKGVER}_amd64.deb \
|
||||
zfs-zed_${ZFSPKGVER}_amd64.deb
|
||||
|
||||
ZFS_DEBS= \
|
||||
libnvpair1linux_${ZFSPKGVER}_amd64.deb \
|
||||
libuutil1linux_${ZFSPKGVER}_amd64.deb \
|
||||
libzfs2linux_${ZFSPKGVER}_amd64.deb \
|
||||
ZFS_DBG_DEBS = $(patsubst %_${ZFSPKGVER}_amd64.deb, %-dbgsym_${ZFSPKGVER}_amd64.deb, ${ZFS_DEB1} ${ZFS_DEB_BINARY})
|
||||
|
||||
ZFS_DEB2= ${ZFS_DEB_BINARY} \
|
||||
libzfslinux-dev_${ZFSPKGVER}_amd64.deb \
|
||||
libzpool2linux_${ZFSPKGVER}_amd64.deb \
|
||||
zfs-dbg_${ZFSPKGVER}_amd64.deb \
|
||||
zfs-zed_${ZFSPKGVER}_amd64.deb \
|
||||
zfs-initramfs_${ZFSPKGVER}_all.deb \
|
||||
zfs-test_${ZFSPKGVER}_amd64.deb \
|
||||
zfsutils-linux_${ZFSPKGVER}_amd64.deb
|
||||
python3-pyzfs_${ZFSPKGVER}_amd64.deb \
|
||||
pyzfs-doc_${ZFSPKGVER}_all.deb \
|
||||
spl_${ZFSPKGVER}_all.deb \
|
||||
zfs-initramfs_${ZFSPKGVER}_all.deb
|
||||
ZFS_DEBS= ${ZFS_DEB1} ${ZFS_DEB2} ${ZFS_DBG_DEBS}
|
||||
|
||||
DEBS=${SPL_DEBS} ${ZFS_DEBS}
|
||||
ZFS_DSC = zfs-linux_${ZFSPKGVER}.dsc
|
||||
|
||||
all: deb
|
||||
deb: ${DEBS}
|
||||
.PHONY: deb
|
||||
deb: ${ZFS_DEBS}
|
||||
.PHONY: dsc
|
||||
dsc: ${ZFS_DSC}
|
||||
|
||||
# called from pve-kernel's Makefile to get patched sources
|
||||
.PHONY: kernel
|
||||
kernel: dsc
|
||||
dpkg-source -x ${ZFS_DSC} ../pkg-zfs
|
||||
${MAKE} -C ../pkg-zfs -f debian/rules adapt_meta_file
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: ${DEBS}
|
||||
@@ -39,41 +48,35 @@ dinstall: ${DEBS}
|
||||
|
||||
.PHONY: submodule
|
||||
submodule:
|
||||
test -f "${ZFSSRC}/debian/changelog" || git submodule update --init
|
||||
test -f "${SPLSRC}/debian/changelog" || git submodule update --init
|
||||
|
||||
.PHONY: spl
|
||||
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
|
||||
test -f "${ZFSSRC}/README.md" || git submodule update --init
|
||||
${ZFSSRC}/README.md: submodule
|
||||
|
||||
.PHONY: zfs
|
||||
zfs ${ZFS_DEBS} ${ZFS_TRANS_DEBS}: ${ZFSSRC}
|
||||
rm -rf ${ZFSDIR}
|
||||
mkdir ${ZFSDIR}
|
||||
cp -a ${ZFSSRC}/* ${ZFSDIR}/
|
||||
mv ${ZFSDIR}/debian/changelog ${ZFSDIR}/debian/changelog.org
|
||||
cat zfs-changelog.Debian ${ZFSDIR}/debian/changelog.org > ${ZFSDIR}/debian/changelog
|
||||
cd ${ZFSDIR}; ln -s ../zfs-patches patches
|
||||
cd ${ZFSDIR}; quilt push -a
|
||||
cd ${ZFSDIR}; rm -rf .pc ./patches
|
||||
zfs: ${ZFS_DEBS}
|
||||
${ZFS_DEB2}: ${ZFS_DEB1}
|
||||
${ZFS_DEB1}: ${ZFSDIR}
|
||||
cd ${ZFSDIR}; dpkg-buildpackage -b -uc -us
|
||||
lintian ${ZFS_DEBS}
|
||||
|
||||
${ZFS_DSC}: ${ZFSDIR}
|
||||
tar czf zfs-linux_${ZFSVER}.orig.tar.gz ${ZFSDIR}
|
||||
cd ${ZFSDIR}; dpkg-buildpackage -S -uc -us -d
|
||||
lintian $@
|
||||
|
||||
${ZFSDIR}: ${ZFSSRC}/README.md ${ZFSSRC} ${ZFSPKG}
|
||||
rm -rf ${ZFSDIR} ${ZFSDIR}.tmp
|
||||
cp -a ${ZFSSRC} ${ZFSDIR}.tmp
|
||||
cp -a ${ZFSPKG} ${ZFSDIR}.tmp/debian
|
||||
mv ${ZFSDIR}.tmp ${ZFSDIR}
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *~ *.deb *.changes *.buildinfo ${ZFSDIR} ${SPLDIR}
|
||||
rm -rf *~ *.deb *.changes *.buildinfo *.dsc *.orig.tar.* *.debian.tar.* ${ZFSDIR}
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean
|
||||
|
||||
|
||||
.PHONY: upload
|
||||
upload: ${DEBS}
|
||||
tar -cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch --arch amd64
|
||||
tar -cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye --arch amd64
|
||||
|
||||
@@ -2,8 +2,8 @@ Proxmox VE packaging for ZFS on Linux
|
||||
|
||||
This is based on code from:
|
||||
|
||||
https://github.com/zfsonlinux/pkg-spl.git
|
||||
https://github.com/zfsonlinux/pkg-zfs.git
|
||||
https://salsa.debian.org/zfsonlinux-team/zfs
|
||||
https://salsa.debian.org/zfsonlinux-team/spl
|
||||
|
||||
We removed the dkms/modules related code, because we ship the
|
||||
modules with the kernel.
|
||||
|
||||
Vendored
+818
@@ -0,0 +1,818 @@
|
||||
zfs-linux (2.0.6-pve1) bullseye; urgency=medium
|
||||
|
||||
* update ZFS to 2.0.6
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Tue, 28 Sep 2021 07:36:23 +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
+281
@@ -0,0 +1,281 @@
|
||||
Source: zfs-linux
|
||||
Section: contrib/kernel
|
||||
Priority: optional
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Build-Depends: abigail-tools,
|
||||
debhelper-compat (= 12),
|
||||
dh-python,
|
||||
libblkid-dev,
|
||||
libelf-dev,
|
||||
libpam0g-dev,
|
||||
libssl-dev | libssl1.0-dev,
|
||||
libtool,
|
||||
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}),
|
||||
libzpool4linux (= ${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,
|
||||
libzpool4 and libzfs4.
|
||||
|
||||
Package: libzfs4linux
|
||||
Section: contrib/libs
|
||||
Architecture: linux-any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Breaks: libzfs2, libzfs2linux, libzfs3linux, libzfs4
|
||||
Replaces: libzfs2, libzfs2linux, libzfs3linux, 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 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: libzpool4linux
|
||||
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: zfsutils-linux
|
||||
Section: contrib/admin
|
||||
Architecture: linux-any
|
||||
Depends: python3, ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
|
||||
Recommends: lsb-base, 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}
|
||||
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,
|
||||
libzpool4linux-dbgsym,
|
||||
zfs-test-dbgsym,
|
||||
zfsutils-linux-dbgsym,
|
||||
zfs-zed-dbgsym,
|
||||
Description: Transitional package. It can be safely removed.
|
||||
Vendored
+1281
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 b3c1befaa..660d8ccb9 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}|cut -f3- -d'-'|sed 's/-/_/g')
|
||||
+9
-10
@@ -12,19 +12,18 @@ is needed for zfs-mount, zfs-share and zfs-zed services in case ZFS is
|
||||
not actually used.
|
||||
|
||||
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(-)
|
||||
|
||||
diff --git a/etc/modules-load.d/zfs.conf.in b/etc/modules-load.d/zfs.conf.in
|
||||
index 8b41baa30..59b058c9a 100644
|
||||
--- 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 44e1bb3ed..7509b03cb 100644
|
||||
--- a/etc/modules-load.d/zfs.conf
|
||||
+++ b/etc/modules-load.d/zfs.conf
|
||||
@@ -1,3 +1,3 @@
|
||||
# Always load kernel modules at boot. The default behavior is to load the
|
||||
# kernel modules in the zfs-import-*.service or when blkid(8) detects a pool.
|
||||
# The default behavior is to allow udev to load the kernel modules on demand.
|
||||
# Uncomment the following line to unconditionally load them at boot.
|
||||
-#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 008075138..570e27707 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=on-abort
|
||||
|
||||
[Install]
|
||||
+5
-6
@@ -7,23 +7,22 @@ Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
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 +-
|
||||
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
|
||||
index 227f5b74f..cc428b0d0 100644
|
||||
index f0317e23e..9a5e9cb17 100644
|
||||
--- a/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
|
||||
RemainAfterExit=yes
|
||||
ExecStartPre=/sbin/modprobe zfs
|
||||
-ExecStart=@sbindir@/zpool import -aN -o cachefile=none
|
||||
+ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none
|
||||
|
||||
[Install]
|
||||
WantedBy=zfs-import.target
|
||||
--
|
||||
2.14.2
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
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 | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmd/zed/zed.d/zed.rc b/cmd/zed/zed.d/zed.rc
|
||||
index df560f921..4ce7af744 100644
|
||||
--- a/cmd/zed/zed.d/zed.rc
|
||||
+++ b/cmd/zed/zed.d/zed.rc
|
||||
@@ -15,7 +15,7 @@
|
||||
# Email will only be sent if ZED_EMAIL_ADDR is defined.
|
||||
# Disabled by default; uncomment to enable.
|
||||
#
|
||||
-#ZED_EMAIL_ADDR="root"
|
||||
+ZED_EMAIL_ADDR="root"
|
||||
|
||||
##
|
||||
# Name or path of executable responsible for sending notifications via email;
|
||||
@@ -41,7 +41,7 @@
|
||||
##
|
||||
# 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,29 @@
|
||||
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
|
||||
---
|
||||
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 8b2d0c200..118c96547 100644
|
||||
--- a/cmd/zed/zed.d/Makefile.am
|
||||
+++ b/cmd/zed/zed.d/Makefile.am
|
||||
@@ -48,6 +48,6 @@ 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"
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Russo <antonio.e.russo@gmail.com>
|
||||
Date: Tue, 5 May 2020 22:15:16 -0600
|
||||
Subject: [PATCH] Use installed python3
|
||||
|
||||
---
|
||||
.../functional/cli_root/zfs_program/zfs_program_json.ksh | 6 +++---
|
||||
.../tests/functional/rsend/send_encrypted_files.ksh | 2 +-
|
||||
.../tests/functional/rsend/send_realloc_dnode_size.ksh | 2 +-
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh
|
||||
index 3788543b0..c7ee4ae9a 100755
|
||||
--- a/tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh
|
||||
+++ b/tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh
|
||||
@@ -100,10 +100,10 @@ typeset -a pos_cmds_out=(
|
||||
# the same as the input and the --sort-keys option was added. Detect when
|
||||
# --sort-keys is supported and apply the option to ensure the expected order.
|
||||
#
|
||||
-if python -m json.tool --sort-keys <<< "{}"; then
|
||||
- JSON_TOOL_CMD="python -m json.tool --sort-keys"
|
||||
+if python3 -m json.tool --sort-keys <<< "{}"; then
|
||||
+ JSON_TOOL_CMD="python3 -m json.tool --sort-keys"
|
||||
else
|
||||
- JSON_TOOL_CMD="python -m json.tool"
|
||||
+ JSON_TOOL_CMD="python3 -m json.tool"
|
||||
fi
|
||||
|
||||
typeset -i cnt=0
|
||||
diff --git a/tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh b/tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh
|
||||
index f89cb3b31..375d483f7 100755
|
||||
--- a/tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh
|
||||
+++ b/tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh
|
||||
@@ -87,7 +87,7 @@ log_must xattrtest -f 10 -x 3 -s 32768 -r -k -p /$TESTPOOL/$TESTFS2/xattrsadir
|
||||
# ZoL issue #7432
|
||||
log_must zfs set compression=on xattr=sa $TESTPOOL/$TESTFS2
|
||||
log_must touch /$TESTPOOL/$TESTFS2/attrs
|
||||
-log_must eval "python -c 'print \"a\" * 4096' | \
|
||||
+log_must eval "python3 -c 'print \"a\" * 4096' | \
|
||||
set_xattr_stdin bigval /$TESTPOOL/$TESTFS2/attrs"
|
||||
log_must zfs set compression=off xattr=on $TESTPOOL/$TESTFS2
|
||||
|
||||
diff --git a/tests/zfs-tests/tests/functional/rsend/send_realloc_dnode_size.ksh b/tests/zfs-tests/tests/functional/rsend/send_realloc_dnode_size.ksh
|
||||
index 394fe95bb..43560aac5 100755
|
||||
--- a/tests/zfs-tests/tests/functional/rsend/send_realloc_dnode_size.ksh
|
||||
+++ b/tests/zfs-tests/tests/functional/rsend/send_realloc_dnode_size.ksh
|
||||
@@ -93,7 +93,7 @@ log_must zfs snapshot $POOL/fs@c
|
||||
# 4. Create an empty file and add xattrs to it to exercise reclaiming a
|
||||
# dnode that requires more than 1 slot for its bonus buffer (Zol #7433)
|
||||
log_must zfs set compression=on xattr=sa $POOL/fs
|
||||
-log_must eval "python -c 'print \"a\" * 512' |
|
||||
+log_must eval "python3 -c 'print \"a\" * 512' |
|
||||
set_xattr_stdin bigval /$POOL/fs/attrs"
|
||||
log_must zfs snapshot $POOL/fs@d
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
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>
|
||||
---
|
||||
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 c374a52ac..25d1b99d7 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,54 @@
|
||||
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>
|
||||
---
|
||||
man/man1/Makefile.am | 2 +-
|
||||
man/man8/Makefile.am | 1 +
|
||||
man/{man1/arcstat.1 => man8/arcstat.8} | 2 +-
|
||||
3 files changed, 3 insertions(+), 2 deletions(-)
|
||||
rename man/{man1/arcstat.1 => man8/arcstat.8} (99%)
|
||||
|
||||
diff --git a/man/man1/Makefile.am b/man/man1/Makefile.am
|
||||
index 8d7457a3e..101af7b6c 100644
|
||||
--- a/man/man1/Makefile.am
|
||||
+++ b/man/man1/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-dist_man_MANS = zhack.1 ztest.1 raidz_test.1 zvol_wait.1 arcstat.1
|
||||
+dist_man_MANS = zhack.1 ztest.1 raidz_test.1 zvol_wait.1
|
||||
EXTRA_DIST = cstyle.1
|
||||
|
||||
if BUILD_LINUX
|
||||
diff --git a/man/man8/Makefile.am b/man/man8/Makefile.am
|
||||
index 07f6aefa6..a757b1c62 100644
|
||||
--- a/man/man8/Makefile.am
|
||||
+++ b/man/man8/Makefile.am
|
||||
@@ -1,6 +1,7 @@
|
||||
include $(top_srcdir)/config/Substfiles.am
|
||||
|
||||
dist_man_MANS = \
|
||||
+ arcstat.8 \
|
||||
fsck.zfs.8 \
|
||||
mount.zfs.8 \
|
||||
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 ca508b49c..0aa81849a 100644
|
||||
--- a/man/man1/arcstat.1
|
||||
+++ b/man/man8/arcstat.8
|
||||
@@ -13,7 +13,7 @@
|
||||
.\" Copyright (c) 2015 by Delphix. All rights reserved.
|
||||
.\" Copyright (c) 2020 by AJ Jordan. All rights reserved.
|
||||
.\"
|
||||
-.TH ARCSTAT 1 "Oct 20, 2020" OpenZFS
|
||||
+.TH ARCSTAT 8 "Oct 20, 2020" OpenZFS
|
||||
.SH NAME
|
||||
arcstat \- report ZFS ARC and L2ARC statistics
|
||||
.SH SYNOPSIS
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
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-Use-installed-python3.patch
|
||||
0008-Add-systemd-unit-for-importing-specific-pools.patch
|
||||
0009-Patch-move-manpage-arcstat-1-to-arcstat-8.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 --parallel
|
||||
|
||||
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
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
#!/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-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 || return 1
|
||||
}
|
||||
|
||||
trim_if_not_already_trimming () {
|
||||
pool="$1"
|
||||
if ! zpool status "${pool}" | grep -q "trimming"; then
|
||||
# Ignore errors (i.e. HDD pools),
|
||||
# and continue with trimming other pools.
|
||||
zpool trim "${pool}" || true
|
||||
fi
|
||||
}
|
||||
|
||||
zpool_is_nvme_only () {
|
||||
zpool=$1
|
||||
# get a list of devices attached to the specified zpool
|
||||
zpool list -vHPL "${zpool}" |
|
||||
awk -F'\t' '$2 ~ /^\/dev\// {
|
||||
if($2 !~ /^\/dev\/nvme/)
|
||||
exit 1
|
||||
}'
|
||||
}
|
||||
|
||||
# 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 pool
|
||||
do
|
||||
# read user-defined config
|
||||
ret=$(get_property "${pool}")
|
||||
if [ $? -ne 0 ] || [ "disable" = "${ret}" ]; then
|
||||
:
|
||||
elif [ "enable" = "${ret}" ]; then
|
||||
trim_if_not_already_trimming "${pool}"
|
||||
elif [ "-" = "${ret}" ] || [ "auto" = "${ret}" ]; then
|
||||
if zpool_is_nvme_only "${pool}"; then
|
||||
trim_if_not_already_trimming "${pool}"
|
||||
fi
|
||||
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
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
version=3
|
||||
https://zfsonlinux.org/ .*zfs-([\d\.]+)\.tar\.gz$
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
../tree/zfs-initramfs/* /
|
||||
usr/share/initramfs-tools/*
|
||||
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
|
||||
script-not-executable usr/share/zfs/common.sh
|
||||
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
|
||||
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/persist_l2arc/persist_l2arc.cfg
|
||||
script-not-executable usr/share/zfs/zfs-tests/tests/functional/redacted_send/redacted.kshlib
|
||||
package-contains-documentation-outside-usr-share-doc usr/share/zfs/zfs-tests/*
|
||||
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
+120
@@ -0,0 +1,120 @@
|
||||
../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-mount.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/zpool.d/
|
||||
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/man5/
|
||||
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-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/zfsconcepts.8
|
||||
usr/share/man/man8/zfsprops.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-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/zpoolconcepts.8
|
||||
usr/share/man/man8/zpoolprops.8
|
||||
usr/share/man/man8/zstream.8
|
||||
usr/share/man/man8/zstreamdump.8
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
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
|
||||
package-supports-alternative-init-but-no-init.d-script lib/systemd/system/zfs-load-module.service
|
||||
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 ef686e96ec
@@ -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
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: LOLi <loli10K@users.noreply.github.com>
|
||||
Date: Fri, 2 Feb 2018 22:50:42 +0100
|
||||
Subject: [PATCH] Fix systemd_ RPM macros usage on Debian-based distributions
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Debian-based distributions do not seem to provide RPM macros for
|
||||
dealing with systemd pre- and post- (un)install actions: this results
|
||||
in errors when installing or upgrading .deb packages because the
|
||||
resulting control scripts contain the following unresolved macros:
|
||||
|
||||
* %systemd_post
|
||||
* %systemd_preun
|
||||
* %systemd_postun
|
||||
|
||||
Fix this by providing default values for postinstall, preuninstall and
|
||||
postuninstall scripts when these macros are not defined.
|
||||
|
||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
||||
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
|
||||
Closes #7074
|
||||
Closes #7100
|
||||
(cherry picked from commit 29b79dcfe90a67a919c2f42fbaa2e557ea484bd5)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
rpm/generic/zfs.spec.in | 21 ++++++++++++++++++++-
|
||||
1 file changed, 20 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
|
||||
index 4a911b4c2..ce028794c 100644
|
||||
--- a/rpm/generic/zfs.spec.in
|
||||
+++ b/rpm/generic/zfs.spec.in
|
||||
@@ -245,8 +245,15 @@ find %{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \;
|
||||
|
||||
%post
|
||||
%if 0%{?_systemd}
|
||||
+%if 0%{?systemd_post:1}
|
||||
%systemd_post %{systemd_svcs}
|
||||
%else
|
||||
+if [ "$1" = "1" -o "$1" = "install" ] ; then
|
||||
+ # Initial installation
|
||||
+ systemctl preset %{systemd_svcs} >/dev/null || true
|
||||
+fi
|
||||
+%endif
|
||||
+%else
|
||||
if [ -x /sbin/chkconfig ]; then
|
||||
/sbin/chkconfig --add zfs-import
|
||||
/sbin/chkconfig --add zfs-mount
|
||||
@@ -258,9 +265,17 @@ exit 0
|
||||
|
||||
%preun
|
||||
%if 0%{?_systemd}
|
||||
+%if 0%{?systemd_preun:1}
|
||||
%systemd_preun %{systemd_svcs}
|
||||
%else
|
||||
-if [ "$1" = "0" ] && [ -x /sbin/chkconfig ]; then
|
||||
+if [ "$1" = "0" -o "$1" = "remove" ] ; then
|
||||
+ # Package removal, not upgrade
|
||||
+ systemctl --no-reload disable %{systemd_svcs} >/dev/null || true
|
||||
+ systemctl stop %{systemd_svcs} >/dev/null || true
|
||||
+fi
|
||||
+%endif
|
||||
+%else
|
||||
+if [ "$1" = "0" -o "$1" = "remove" ] && [ -x /sbin/chkconfig ]; then
|
||||
/sbin/chkconfig --del zfs-import
|
||||
/sbin/chkconfig --del zfs-mount
|
||||
/sbin/chkconfig --del zfs-share
|
||||
@@ -271,7 +286,11 @@ exit 0
|
||||
|
||||
%postun
|
||||
%if 0%{?_systemd}
|
||||
+%if 0%{?systemd_postun:1}
|
||||
%systemd_postun %{systemd_svcs}
|
||||
+%else
|
||||
+systemctl --system daemon-reload >/dev/null || true
|
||||
+%endif
|
||||
%endif
|
||||
|
||||
%files
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: wli5 <weigang.li@intel.com>
|
||||
Date: Tue, 6 Feb 2018 02:26:27 +0800
|
||||
Subject: [PATCH] Bug fix in qat_compress.c for vmalloc addr check
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Remove the unused vmalloc address check, and function mem_to_page
|
||||
will handle the non-vmalloc address when map it to a physical
|
||||
address.
|
||||
|
||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Signed-off-by: Weigang Li <weigang.li@intel.com>
|
||||
Closes #7125
|
||||
(cherry picked from commit 5f38142e7b3a8994afef60faa2e65d72e7993807)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
module/zfs/qat_compress.c | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/module/zfs/qat_compress.c b/module/zfs/qat_compress.c
|
||||
index 4d17d7ac9..62655f56d 100644
|
||||
--- a/module/zfs/qat_compress.c
|
||||
+++ b/module/zfs/qat_compress.c
|
||||
@@ -364,10 +364,6 @@ qat_compress(qat_compress_dir_t dir, char *src, int src_len,
|
||||
Cpa32U dst_buffer_list_mem_size = sizeof (CpaBufferList) +
|
||||
(num_dst_buf * sizeof (CpaFlatBuffer));
|
||||
|
||||
- if (!is_vmalloc_addr(src) || !is_vmalloc_addr(src + src_len - 1) ||
|
||||
- !is_vmalloc_addr(dst) || !is_vmalloc_addr(dst + dst_len - 1))
|
||||
- return (-1);
|
||||
-
|
||||
if (PHYS_CONTIG_ALLOC(&in_pages,
|
||||
num_src_buf * sizeof (struct page *)) != CPA_STATUS_SUCCESS)
|
||||
goto fail;
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Date: Mon, 5 Feb 2018 20:42:52 -0800
|
||||
Subject: [PATCH] Fix default libdir for Debian/Ubuntu
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The distribution provided architecture specific RPM macro files
|
||||
for x86_64 and other architectures on Debian/Ubuntu specify the
|
||||
wrong default libdir install location. When building deb packages
|
||||
override _lib with the correct location.
|
||||
|
||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
||||
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
|
||||
Reviewed by: George Melikov <mail@gmelikov.ru>
|
||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Closes #7083
|
||||
Closes #7101
|
||||
(cherry picked from commit f1dde3fb20eb27c05b57ad82e0905a587ced8ee8)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
config/zfs-build.m4 | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
|
||||
index 5eaa49c87..7c19cecd6 100644
|
||||
--- a/config/zfs-build.m4
|
||||
+++ b/config/zfs-build.m4
|
||||
@@ -164,6 +164,19 @@ AC_DEFUN([ZFS_AC_RPM], [
|
||||
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=
|
||||
|
||||
+ dnl # Override default lib directory on Debian/Ubuntu systems. The provided
|
||||
+ dnl # /usr/lib/rpm/platform/<arch>/macros files do not specify the correct
|
||||
+ dnl # path for multiarch systems as described by the packaging guidelines.
|
||||
+ dnl #
|
||||
+ dnl # https://wiki.ubuntu.com/MultiarchSpec
|
||||
+ dnl # https://wiki.debian.org/Multiarch/Implementation
|
||||
+ dnl #
|
||||
+ AS_IF([test "$DEFAULT_PACKAGE" = "deb"], [
|
||||
+ MULTIARCH_LIBDIR="lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
|
||||
+ RPM_DEFINE_UTIL+=' --define "_lib $(MULTIARCH_LIBDIR)"'
|
||||
+ AC_SUBST(MULTIARCH_LIBDIR)
|
||||
+ ])
|
||||
+
|
||||
SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
|
||||
SRPM_DEFINE_UTIL=
|
||||
SRPM_DEFINE_KMOD=
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Richard Elling <Richard.Elling@RichardElling.com>
|
||||
Date: Wed, 7 Feb 2018 11:54:20 -0800
|
||||
Subject: [PATCH] Remove deprecated zfs_arc_p_aggressive_disable
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
zfs_arc_p_aggressive_disable is no more. This PR removes docs
|
||||
and module parameters for zfs_arc_p_aggressive_disable.
|
||||
|
||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
||||
Reviewed by: George Melikov <mail@gmelikov.ru>
|
||||
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Richard Elling <Richard.Elling@RichardElling.com>
|
||||
Closes #7135
|
||||
|
||||
(cherry picked from commit a58e1284d8998b0d7e409a6ec009d9d372aad41b)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
module/zfs/arc.c | 4 ----
|
||||
man/man5/zfs-module-parameters.5 | 11 -----------
|
||||
2 files changed, 15 deletions(-)
|
||||
|
||||
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
|
||||
index 264e67735..9d1d0db1d 100644
|
||||
--- a/module/zfs/arc.c
|
||||
+++ b/module/zfs/arc.c
|
||||
@@ -391,7 +391,6 @@ unsigned long zfs_arc_dnode_limit_percent = 10;
|
||||
*/
|
||||
unsigned long zfs_arc_sys_free = 0;
|
||||
int zfs_arc_min_prefetch_lifespan = 0;
|
||||
-int zfs_arc_p_aggressive_disable = 1;
|
||||
int zfs_arc_p_dampener_disable = 1;
|
||||
int zfs_arc_meta_prune = 10000;
|
||||
int zfs_arc_meta_strategy = ARC_STRATEGY_META_BALANCED;
|
||||
@@ -7928,9 +7927,6 @@ MODULE_PARM_DESC(zfs_arc_meta_strategy, "Meta reclaim strategy");
|
||||
module_param(zfs_arc_grow_retry, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_arc_grow_retry, "Seconds before growing arc size");
|
||||
|
||||
-module_param(zfs_arc_p_aggressive_disable, int, 0644);
|
||||
-MODULE_PARM_DESC(zfs_arc_p_aggressive_disable, "disable aggressive arc_p grow");
|
||||
-
|
||||
module_param(zfs_arc_p_dampener_disable, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_arc_p_dampener_disable, "disable arc_p adapt dampener");
|
||||
|
||||
diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5
|
||||
index 19e6becfd..d4daffde6 100644
|
||||
--- a/man/man5/zfs-module-parameters.5
|
||||
+++ b/man/man5/zfs-module-parameters.5
|
||||
@@ -674,17 +674,6 @@ max arc_p
|
||||
Default value: \fB0\fR.
|
||||
.RE
|
||||
|
||||
-.sp
|
||||
-.ne 2
|
||||
-.na
|
||||
-\fBzfs_arc_p_aggressive_disable\fR (int)
|
||||
-.ad
|
||||
-.RS 12n
|
||||
-Disable aggressive arc_p growth
|
||||
-.sp
|
||||
-Use \fB1\fR for yes (default) and \fB0\fR to disable.
|
||||
-.RE
|
||||
-
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: WHR <msl0000023508@gmail.com>
|
||||
Date: Sun, 14 Jan 2018 23:57:54 +0300
|
||||
Subject: [PATCH] OpenZFS 8966 - Source file zfs_acl.c, function
|
||||
zfs_aclset_common contains a use after end of the lifetime of a local
|
||||
variable
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Authored by: WHR <msl0000023508@gmail.com>
|
||||
Reviewed by: Matt Ahrens <mahrens@delphix.com>
|
||||
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
|
||||
Reviewed by: George Melikov <mail@gmelikov.ru>
|
||||
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Approved by: Richard Lowe <richlowe@richlowe.net>
|
||||
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
||||
|
||||
OpenZFS-issue: https://www.illumos.org/issues/8966
|
||||
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c95549fcdc
|
||||
Closes #7141
|
||||
|
||||
(cherry picked from commit a196b3bc3dcc14bda32b2fbed40d5e436319aca6)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
module/zfs/zfs_acl.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/module/zfs/zfs_acl.c b/module/zfs/zfs_acl.c
|
||||
index 7ddedeaaf..1fcfca0c7 100644
|
||||
--- a/module/zfs/zfs_acl.c
|
||||
+++ b/module/zfs/zfs_acl.c
|
||||
@@ -1323,6 +1323,7 @@ zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx)
|
||||
sa_bulk_attr_t bulk[5];
|
||||
uint64_t ctime[2];
|
||||
int count = 0;
|
||||
+ zfs_acl_phys_t acl_phys;
|
||||
|
||||
mode = zp->z_mode;
|
||||
|
||||
@@ -1369,7 +1370,6 @@ zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx)
|
||||
} else { /* Painful legacy way */
|
||||
zfs_acl_node_t *aclnode;
|
||||
uint64_t off = 0;
|
||||
- zfs_acl_phys_t acl_phys;
|
||||
uint64_t aoid;
|
||||
|
||||
if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs),
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,145 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Date: Thu, 8 Feb 2018 14:27:59 -0800
|
||||
Subject: [PATCH] Linux 4.16 compat: inode_set_iversion()
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
A new interface was added to manipulate the version field of an
|
||||
inode. Add a inode_set_iversion() wrapper for older kernels and
|
||||
use the new interface when available.
|
||||
|
||||
The i_version field was dropped from the trace point due to the
|
||||
switch to an atomic64_t i_version type.
|
||||
|
||||
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
|
||||
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
|
||||
Reviewed-by: Chunwei Chen <david.chen@nutanix.com>
|
||||
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||
Closes #7148
|
||||
(cherry picked from commit 310e63dfd18f59ad583631dfa2f55d40cedf1415)
|
||||
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
||||
---
|
||||
include/linux/vfs_compat.h | 14 ++++++++++++++
|
||||
include/sys/trace_acl.h | 6 ++----
|
||||
module/zfs/zpl_super.c | 2 +-
|
||||
config/kernel-inode-set-iversion.m4 | 19 +++++++++++++++++++
|
||||
config/kernel.m4 | 1 +
|
||||
5 files changed, 37 insertions(+), 5 deletions(-)
|
||||
create mode 100644 config/kernel-inode-set-iversion.m4
|
||||
|
||||
diff --git a/include/linux/vfs_compat.h b/include/linux/vfs_compat.h
|
||||
index 6111f0afc..f51ff887d 100644
|
||||
--- a/include/linux/vfs_compat.h
|
||||
+++ b/include/linux/vfs_compat.h
|
||||
@@ -578,4 +578,18 @@ current_time(struct inode *ip)
|
||||
}
|
||||
#endif
|
||||
|
||||
+/*
|
||||
+ * 4.16 API change
|
||||
+ * Added iversion interface for managing inode version field.
|
||||
+ */
|
||||
+#ifdef HAVE_INODE_SET_IVERSION
|
||||
+#include <linux/iversion.h>
|
||||
+#else
|
||||
+static inline void
|
||||
+inode_set_iversion(struct inode *ip, u64 val)
|
||||
+{
|
||||
+ ip->i_version = val;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif /* _ZFS_VFS_H */
|
||||
diff --git a/include/sys/trace_acl.h b/include/sys/trace_acl.h
|
||||
index 1057e560b..610bbe29c 100644
|
||||
--- a/include/sys/trace_acl.h
|
||||
+++ b/include/sys/trace_acl.h
|
||||
@@ -68,7 +68,6 @@ DECLARE_EVENT_CLASS(zfs_ace_class,
|
||||
__field(uint32_t, i_gid)
|
||||
__field(unsigned long, i_ino)
|
||||
__field(unsigned int, i_nlink)
|
||||
- __field(u64, i_version)
|
||||
__field(loff_t, i_size)
|
||||
__field(unsigned int, i_blkbits)
|
||||
__field(unsigned short, i_bytes)
|
||||
@@ -103,7 +102,6 @@ DECLARE_EVENT_CLASS(zfs_ace_class,
|
||||
__entry->i_gid = KGID_TO_SGID(ZTOI(zn)->i_gid);
|
||||
__entry->i_ino = zn->z_inode.i_ino;
|
||||
__entry->i_nlink = zn->z_inode.i_nlink;
|
||||
- __entry->i_version = zn->z_inode.i_version;
|
||||
__entry->i_size = zn->z_inode.i_size;
|
||||
__entry->i_blkbits = zn->z_inode.i_blkbits;
|
||||
__entry->i_bytes = zn->z_inode.i_bytes;
|
||||
@@ -121,7 +119,7 @@ DECLARE_EVENT_CLASS(zfs_ace_class,
|
||||
"mapcnt %llu size %llu pflags %llu "
|
||||
"sync_cnt %u mode 0x%x is_sa %d "
|
||||
"is_mapped %d is_ctldir %d is_stale %d inode { "
|
||||
- "uid %u gid %u ino %lu nlink %u version %llu size %lli "
|
||||
+ "uid %u gid %u ino %lu nlink %u size %lli "
|
||||
"blkbits %u bytes %u mode 0x%x generation %x } } "
|
||||
"ace { type %u flags %u access_mask %u } mask_matched %u",
|
||||
__entry->z_id, __entry->z_unlinked, __entry->z_atime_dirty,
|
||||
@@ -131,7 +129,7 @@ DECLARE_EVENT_CLASS(zfs_ace_class,
|
||||
__entry->z_is_sa, __entry->z_is_mapped,
|
||||
__entry->z_is_ctldir, __entry->z_is_stale, __entry->i_uid,
|
||||
__entry->i_gid, __entry->i_ino, __entry->i_nlink,
|
||||
- __entry->i_version, __entry->i_size, __entry->i_blkbits,
|
||||
+ __entry->i_size, __entry->i_blkbits,
|
||||
__entry->i_bytes, __entry->i_mode, __entry->i_generation,
|
||||
__entry->z_type, __entry->z_flags, __entry->z_access_mask,
|
||||
__entry->mask_matched)
|
||||
diff --git a/module/zfs/zpl_super.c b/module/zfs/zpl_super.c
|
||||
index b6ef60277..25e75a897 100644
|
||||
--- a/module/zfs/zpl_super.c
|
||||
+++ b/module/zfs/zpl_super.c
|
||||
@@ -36,7 +36,7 @@ zpl_inode_alloc(struct super_block *sb)
|
||||
struct inode *ip;
|
||||
|
||||
VERIFY3S(zfs_inode_alloc(sb, &ip), ==, 0);
|
||||
- ip->i_version = 1;
|
||||
+ inode_set_iversion(ip, 1);
|
||||
|
||||
return (ip);
|
||||
}
|
||||
diff --git a/config/kernel-inode-set-iversion.m4 b/config/kernel-inode-set-iversion.m4
|
||||
new file mode 100644
|
||||
index 000000000..9a7d7890e
|
||||
--- /dev/null
|
||||
+++ b/config/kernel-inode-set-iversion.m4
|
||||
@@ -0,0 +1,19 @@
|
||||
+dnl #
|
||||
+dnl # 4.16 API change
|
||||
+dnl # inode_set_iversion introduced to set i_version
|
||||
+dnl #
|
||||
+AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_IVERSION], [
|
||||
+ AC_MSG_CHECKING([whether inode_set_iversion() exists])
|
||||
+ ZFS_LINUX_TRY_COMPILE([
|
||||
+ #include <linux/iversion.h>
|
||||
+ ],[
|
||||
+ struct inode inode;
|
||||
+ inode_set_iversion(&inode, 1);
|
||||
+ ],[
|
||||
+ AC_MSG_RESULT(yes)
|
||||
+ AC_DEFINE(HAVE_INODE_SET_IVERSION, 1,
|
||||
+ [inode_set_iversion() exists])
|
||||
+ ],[
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ ])
|
||||
+])
|
||||
diff --git a/config/kernel.m4 b/config/kernel.m4
|
||||
index b759ccd39..b83f021e8 100644
|
||||
--- a/config/kernel.m4
|
||||
+++ b/config/kernel.m4
|
||||
@@ -65,6 +65,7 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
||||
ZFS_AC_KERNEL_INODE_OPERATIONS_SET_ACL
|
||||
ZFS_AC_KERNEL_INODE_OPERATIONS_GETATTR
|
||||
ZFS_AC_KERNEL_INODE_SET_FLAGS
|
||||
+ ZFS_AC_KERNEL_INODE_SET_IVERSION
|
||||
ZFS_AC_KERNEL_GET_ACL_HANDLE_CACHE
|
||||
ZFS_AC_KERNEL_SHOW_OPTIONS
|
||||
ZFS_AC_KERNEL_FILE_INODE
|
||||
--
|
||||
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