Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable/cobia]: sync with upstream zfs-2.2.3-staging #211

Merged
merged 95 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
b3626f0
linux 6.7 compat: simplify current_time() check
robn Dec 16, 2023
3c13601
linux 6.7 compat: use inode atime/mtime accessors
robn Dec 16, 2023
18a9185
linux 6.7 compat: handle superblock shrinker member change
robn Dec 16, 2023
03b8409
linux 6.7 compat: rework shrinker setup for heap allocations
robn Dec 16, 2023
3c502e3
ZTS: Disable io_uring test on CentOS 9
behlendorf Dec 9, 2023
d530d5d
Linux 6.5 compat: check BLK_OPEN_EXCL is defined
behlendorf Dec 21, 2023
db2db50
spa: make read/write queues configurable
robn Oct 25, 2023
630a3cc
Update docker_image.yml
themylogin Jan 4, 2024
9e4b0cd
Merge pull request #203 from truenas/themylogin-patch-1
themylogin Jan 4, 2024
8c28d5e
Add Dockerfile
themylogin Jan 5, 2024
e9363d8
Merge pull request #204 from truenas/dockerfile-2.2
themylogin Jan 7, 2024
2a59b6b
ABD: Be more assertive in iterators
amotin Oct 24, 2023
c34fe8d
Update the kstat dataset_name when renaming a zvol
asomers Nov 7, 2023
f135936
FreeBSD: Optimize large kstat outputs
amotin Nov 7, 2023
a8c29a7
Linux: Reclaim unused spl_kmem_cache_reclaim
amotin Nov 10, 2023
2e259c6
L2ARC: Restrict write size to 1/4 of the device
amotin Nov 14, 2023
ad47eca
ZIL: Assert record sizes in different places
amotin Nov 28, 2023
e48195c
ZIO: Add overflow checks for linear buffers
amotin Dec 1, 2023
3b8f227
ZIL: Remove TX_CLONE_RANGE replay for ZVOLs.
amotin Dec 1, 2023
e11b3eb
ZIL: Do not clone blocks from the future
amotin Dec 5, 2023
1219245
Allow block cloning across encrypted datasets
oromenahar Dec 5, 2023
dea2d3c
zdb: Dump encrypted write and clone ZIL records
amotin Dec 6, 2023
1e1d748
ZIL: Remove 128K into 2x68K LWB split optimization
amotin Dec 6, 2023
e09356f
BRT: Limit brt_vdev_dump() to only one vdev
amotin Dec 6, 2023
b13c91b
DMU: Fix lock leak on dbuf_hold() error
amotin Dec 9, 2023
a701548
dbuf: Handle arcbuf assignment after block cloning
amotin Dec 12, 2023
9c40ae0
dbuf: Set dr_data when unoverriding after clone
amotin Dec 12, 2023
f71c16a
Don't panic on unencrypted block in encrypted dataset
chrisperedun Dec 21, 2023
861b0ed
Change `Dockerfile` to use standard build process
themylogin Jan 7, 2024
f12cd3d
Merge pull request #205 from truenas/contrib-truenas
themylogin Jan 12, 2024
976bf9b
Linux 6.2 compat: add check for kernel_neon_* availability
Harry-Chen Jan 9, 2024
152a775
Improve block sizes checks during cloning
amotin Jan 9, 2024
ac59231
Fix livelist assertions for dedup and cloning
amotin Jan 9, 2024
3bd23fd
freebsd: fix compile for spa_taskq_read/spa_taskq_write params
robn Jan 11, 2024
9181e94
spa: Fix FreeBSD sysctl handlers
markjdb Dec 29, 2023
a00231a
spa: Let spa_taskq_param_get()'s addition of a newline be optional
markjdb Dec 29, 2023
9ecd112
compact: workaround for GPL-only symbols on riscv from Linux 6.2
Harry-Chen Dec 6, 2023
628e26f
Merge branch 'zfs-2.2.3-staging' into truenas/zfs-2.2-release
ixhamza Jan 17, 2024
95ae656
Linux 6.7 compat: zfs_setattr fix atime update
robn Jan 16, 2024
3009e11
ZIO: Optimize zio_flush()
amotin Nov 17, 2023
d3bf3a9
dmu: Allow buffer fills to fail
amotin Dec 15, 2023
84aa252
ZIL: Detect single-threaded workloads
amotin Oct 24, 2023
b8b3729
ZIL: Improve next log block size prediction
amotin Dec 21, 2023
21acb5a
Fix cloning into mmaped and cached file.
pjd Jan 14, 2024
fc0a9f0
Merge pull request #207 from truenas/truenas/zfs-2.2.3-staging-2
amotin Jan 17, 2024
2ecc2df
Linux 6.7 compat: zfs_setattr fix atime update
robn Jan 16, 2024
07cf973
Autotrim High Load Average Fix
jxdking Jan 17, 2024
387f003
ZTS: block_cloning: Use numeric sort for get_same_blocks
ixhamza Dec 6, 2023
d8b0b60
ZTS: Add test cases for block cloning replay
ixhamza Nov 30, 2023
f94a779
Test LWB buffer overflow for block cloning
usaleem-ix Dec 15, 2023
c16d103
Block cloning tests.
pjd Dec 26, 2023
83c0ccc
Enable block_cloning tests on FreeBSD
behlendorf Jan 12, 2024
d2f7b2e
ZTS: Test for clone, mmap and write for block cloning
usaleem-ix Jan 16, 2024
ef52795
Fix cloning into mmaped and cached file.
pjd Jan 17, 2024
c1161e2
fix: variable type with zfs-tests/cmd/clonefile.c
mcmilk Jan 17, 2024
9e0304c
ZTS: Apply zfs_bclone_enabled to bclone tests
behlendorf Jan 23, 2024
3425484
Fix file descriptor leak on pool import.
pjd Jan 23, 2024
4d4972e
Stop wasting time on malloc in snprintf_zstd_header
rincebrain Jan 12, 2024
7bccf98
Make zdb -R scale less poorly
rincebrain Jan 12, 2024
22e4f08
Linux: Defer loading the object set in zfs_setattr()
markjdb Jan 9, 2024
8b1c6db
Fix a potential use-after-free in zfs_setsecattr()
markjdb Jan 9, 2024
4db88c3
fix(mount): do not truncate shares not zfs mount
stfl Jan 12, 2024
509526a
fix: preserve linux kmod signature in zfs-kmod rpm spec
bsherman Jan 12, 2024
2006ac1
Fix "out of memory" error
behlendorf Jan 12, 2024
52cee9a
fix: Uber block label not always found for aux vdevs
ixhamza Jan 4, 2024
eb4a36b
Extend aux label to add path information
ixhamza Jan 4, 2024
a2e71db
Add path handling for aux vdevs in `label_path`
ixhamza Jan 4, 2024
6b64acc
Make spl_kmem_cache size check consistent
youzhongyang Jan 16, 2024
424d06a
Make sure all necessary RPM path macros are defined
Lalufu Jan 16, 2024
276be53
linux spl: fix typo in top comment of spl-condvar.c
mcmilk Jan 17, 2024
09a7961
FreeBSD: Fix bootstrapping tools under Linux/musl
valpackett Jan 19, 2024
cfa29b9
ZTS: Apply small changes for speeding up the tests
mcmilk Jan 26, 2024
9da745f
Switch to CodeQL to detect prohibited function use
ryao Jan 26, 2024
9ad1504
ZTS: Update deprecated Github Action version numbers
mcmilk Jan 26, 2024
dd3a0a2
Update vdev devid and physpath if changed between imports
ixhamza Jan 26, 2024
0606ce2
zpool wait: print timestamp before the header
robn Jan 26, 2024
7cd666d
Move nodes into correct subgraphs
andrewc12 Jan 29, 2024
dd0874c
ZTS: Allow longer run time for zdb_args_pos
behlendorf Jan 29, 2024
acc7cd8
Update man pages to time(1) from time(2)
chrisdavidson Jan 29, 2024
ab65360
Don't assert mg_initialized due to device addition race
pcd1193182 Jan 29, 2024
621dfaf
Linux 6.7 compat: META
behlendorf Jan 29, 2024
64afc4e
Linux 6.8 compat: make test functions static
robn Jan 22, 2024
ce782d0
Linux 6.8 compat: update for new bdev access functions
robn Jan 23, 2024
7466e09
Linux 6.8 compat: implement strlcpy fallback
robn Jan 23, 2024
09e6724
Linux 6.8 compat: replace MAX_ORDER define
robn Jan 23, 2024
cbd51c5
Linux 6.8 compat: fix inode permission tests
robn Jan 23, 2024
e6ca28c
Linux 6.8 compat: handle mnt_idmap user_namespace change
robn Jan 23, 2024
992d887
ZTS: Add dirty dnode stress test
tonyhutter Dec 11, 2023
59112ca
zed: misc vdev_enc_sysfs_path fixes
tonyhutter Nov 7, 2023
6914212
zpool: Add slot power control, print power status
tonyhutter Dec 21, 2023
0d87f35
Merge branch 'zfs-2.2.3-staging' into truenas/zfs-2.2-release
ixhamza Jan 30, 2024
9ef1584
Fix the FreeBSD userspace build (#15716)
markjdb Dec 27, 2023
eeab554
Tag zfs-2.2.3
tonyhutter Jan 30, 2024
b3b9983
Merge updated branch 'zfs-2.2.3-hutter'
ixhamza Jan 31, 2024
096c0b3
Merge pull request #209 from truenas/truenas/zfs-2.2.3-staging
amotin Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/codeql-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "Custom CodeQL Analysis"

queries:
- uses: ./.github/codeql/custom-queries/cpp/deprecatedFunctionUsage.ql
4 changes: 4 additions & 0 deletions .github/codeql-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "Custom CodeQL Analysis"

paths-ignore:
- tests
59 changes: 59 additions & 0 deletions .github/codeql/custom-queries/cpp/deprecatedFunctionUsage.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* @name Deprecated function usage detection
* @description Detects functions whose usage is banned from the OpenZFS
* codebase due to QA concerns.
* @kind problem
* @severity error
* @id cpp/deprecated-function-usage
*/

import cpp

predicate isDeprecatedFunction(Function f) {
f.getName() = "strtok" or
f.getName() = "__xpg_basename" or
f.getName() = "basename" or
f.getName() = "dirname" or
f.getName() = "bcopy" or
f.getName() = "bcmp" or
f.getName() = "bzero" or
f.getName() = "asctime" or
f.getName() = "asctime_r" or
f.getName() = "gmtime" or
f.getName() = "localtime" or
f.getName() = "strncpy"

}

string getReplacementMessage(Function f) {
if f.getName() = "strtok" then
result = "Use strtok_r(3) instead!"
else if f.getName() = "__xpg_basename" then
result = "basename(3) is underspecified. Use zfs_basename() instead!"
else if f.getName() = "basename" then
result = "basename(3) is underspecified. Use zfs_basename() instead!"
else if f.getName() = "dirname" then
result = "dirname(3) is underspecified. Use zfs_dirnamelen() instead!"
else if f.getName() = "bcopy" then
result = "bcopy(3) is deprecated. Use memcpy(3)/memmove(3) instead!"
else if f.getName() = "bcmp" then
result = "bcmp(3) is deprecated. Use memcmp(3) instead!"
else if f.getName() = "bzero" then
result = "bzero(3) is deprecated. Use memset(3) instead!"
else if f.getName() = "asctime" then
result = "Use strftime(3) instead!"
else if f.getName() = "asctime_r" then
result = "Use strftime(3) instead!"
else if f.getName() = "gmtime" then
result = "gmtime(3) isn't thread-safe. Use gmtime_r(3) instead!"
else if f.getName() = "localtime" then
result = "localtime(3) isn't thread-safe. Use localtime_r(3) instead!"
else
result = "strncpy(3) is deprecated. Use strlcpy(3) instead!"
}

from FunctionCall fc, Function f
where
fc.getTarget() = f and
isDeprecatedFunction(f)
select fc, getReplacementMessage(f)
4 changes: 4 additions & 0 deletions .github/codeql/custom-queries/cpp/qlpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: openzfs-cpp-queries
version: 0.0.0
libraryPathDependencies: codeql-cpp
suites: openzfs-cpp-suite
46 changes: 28 additions & 18 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,54 @@
```mermaid
flowchart TB
subgraph CleanUp and Summary
Part1-20.04-->CleanUp+nice+Summary
Part2-20.04-->CleanUp+nice+Summary
PartN-20.04-->CleanUp+nice+Summary
Part1-22.04-->CleanUp+nice+Summary
Part2-22.04-->CleanUp+nice+Summary
PartN-22.04-->CleanUp+nice+Summary
CleanUp+Summary
end

subgraph Functional Testings
sanity-checks-20.04
zloop-checks-20.04
functional-testing-20.04-->Part1-20.04
functional-testing-20.04-->Part2-20.04
functional-testing-20.04-->PartN-20.04
functional-testing-20.04-->Part3-20.04
functional-testing-20.04-->Part4-20.04
functional-testing-22.04-->Part1-22.04
functional-testing-22.04-->Part2-22.04
functional-testing-22.04-->PartN-22.04
end

subgraph Sanity and zloop Testings
sanity-checks-20.04-->functional-testing-20.04
sanity-checks-22.04-->functional-testing-22.04
zloop-checks-20.04-->functional
zloop-checks-22.04-->functional
functional-testing-22.04-->Part3-22.04
functional-testing-22.04-->Part4-22.04
sanity-checks-22.04
zloop-checks-22.04
end

subgraph Code Checking + Building
Build-Ubuntu-20.04
codeql.yml
checkstyle.yml
Build-Ubuntu-22.04
end

Build-Ubuntu-20.04-->sanity-checks-20.04
Build-Ubuntu-22.04-->sanity-checks-22.04
Build-Ubuntu-20.04-->zloop-checks-20.04
Build-Ubuntu-20.04-->functional-testing-20.04
Build-Ubuntu-22.04-->sanity-checks-22.04
Build-Ubuntu-22.04-->zloop-checks-22.04
end
Build-Ubuntu-22.04-->functional-testing-22.04

sanity-checks-20.04-->CleanUp+Summary
Part1-20.04-->CleanUp+Summary
Part2-20.04-->CleanUp+Summary
Part3-20.04-->CleanUp+Summary
Part4-20.04-->CleanUp+Summary
Part1-22.04-->CleanUp+Summary
Part2-22.04-->CleanUp+Summary
Part3-22.04-->CleanUp+Summary
Part4-22.04-->CleanUp+Summary
sanity-checks-22.04-->CleanUp+Summary
```


1) build zfs modules for Ubuntu 20.04 and 22.04 (~15m)
2) 2x zloop test (~10m) + 2x sanity test (~25m)
3) functional testings in parts 1..5 (each ~1h)
3) 4x functional testings in parts 1..4 (each ~1h)
4) cleanup and create summary
- content of summary depends on the results of the steps

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/checkstyle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
checkstyle:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
if: failure() && steps.CheckABI.outcome == 'failure'
run: |
find -name *.abi | tar -cf abi_files.tar -T -
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure() && steps.CheckABI.outcome == 'failure'
with:
name: New ABI files (use only if you're sure about interface changes)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ jobs:
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: .github/codeql-${{ matrix.language }}.yml
languages: ${{ matrix.language }}

- name: Autobuild
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build_image
on:
push:
branches:
- 'truenas/zfs-2.1-release'
- 'truenas/zfs-2.2-release'

jobs:
docker:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/generate-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function summarize_f() {
output "\n## $headline\n"
rm -rf testfiles
for i in $(seq 1 $FUNCTIONAL_PARTS); do
tarfile="$2/part$i.tar"
tarfile="$2-part$i/part$i.tar"
check_tarfile "$tarfile"
check_logfile "testfiles/log"
done
Expand Down
35 changes: 15 additions & 20 deletions .github/workflows/scripts/setup-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,24 @@ function mod_install() {
cat /proc/spl/kstat/zfs/chksum_bench
echo "::endgroup::"

echo "::group::Reclaim and report disk space"
# remove 4GiB of images
sudo systemd-run docker system prune --force --all --volumes
echo "::group::Optimize storage for ZFS testings"
# remove swap and umount fast storage
# 89GiB -> rootfs + bootfs with ~80MB/s -> don't care
# 64GiB -> /mnt with 420MB/s -> new testing ssd
sudo swapoff -a

# remove unused software
sudo systemd-run --wait rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/* \
/usr/local/* \
/usr/share/az* \
/usr/share/dotnet \
/usr/share/gradle* \
/usr/share/miniconda \
/usr/share/swift \
/var/lib/gems \
/var/lib/mysql \
/var/lib/snapd

# trim the cleaned space
sudo fstrim /
# this one is fast and mounted @ /mnt
# -> we reformat with ext4 + move it to /var/tmp
DEV="/dev/disk/azure/resource-part1"
sudo umount /mnt
sudo mkfs.ext4 -O ^has_journal -F $DEV
sudo mount -o noatime,barrier=0 $DEV /var/tmp
sudo chmod 1777 /var/tmp

# disk usage afterwards
df -h /
sudo df -h /
sudo df -h /var/tmp
sudo fstrim -a
echo "::endgroup::"
}

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/zfs-linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
zloop:
runs-on: ubuntu-${{ inputs.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: modules-${{ inputs.os }}
- name: Install modules
Expand All @@ -34,7 +34,7 @@ jobs:
if: failure()
run: |
sudo chmod +r -R /var/tmp/zloop/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Zpool-logs-${{ inputs.os }}
Expand All @@ -43,7 +43,7 @@ jobs:
!/var/tmp/zloop/*/vdev/
retention-days: 14
if-no-files-found: ignore
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Zpool-files-${{ inputs.os }}
Expand All @@ -55,10 +55,10 @@ jobs:
sanity:
runs-on: ubuntu-${{ inputs.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: modules-${{ inputs.os }}
- name: Install modules
Expand All @@ -77,7 +77,7 @@ jobs:
RESPATH="/var/tmp/test_results"
mv -f $RESPATH/current $RESPATH/testfiles
tar cf $RESPATH/sanity.tar -h -C $RESPATH testfiles
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Logs-${{ inputs.os }}-sanity
Expand All @@ -91,10 +91,10 @@ jobs:
matrix:
tests: [ part1, part2, part3, part4 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: modules-${{ inputs.os }}
- name: Install modules
Expand All @@ -116,9 +116,9 @@ jobs:
RESPATH="/var/tmp/test_results"
mv -f $RESPATH/current $RESPATH/testfiles
tar cf $RESPATH/${{ matrix.tests }}.tar -h -C $RESPATH testfiles
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Logs-${{ inputs.os }}-functional
name: Logs-${{ inputs.os }}-functional-${{ matrix.tests }}
path: /var/tmp/test_results/${{ matrix.tests }}.tar
if-no-files-found: ignore
8 changes: 4 additions & 4 deletions .github/workflows/zfs-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
os: [22.04]
runs-on: ubuntu-${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build modules
run: .github/workflows/scripts/setup-dependencies.sh build
- name: Prepare modules upload
run: tar czf modules-${{ matrix.os }}.tgz *.deb .github tests/test-runner tests/ImageOS.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: modules-${{ matrix.os }}
path: modules-${{ matrix.os }}.tgz
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-22.04
needs: testings
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
- name: Generating summary
run: |
tar xzf modules-22.04/modules-22.04.tgz .github tests
Expand All @@ -58,7 +58,7 @@ jobs:
run: .github/workflows/scripts/generate-summary.sh 3
- name: Summary for errors #4
run: .github/workflows/scripts/generate-summary.sh 4
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Summary Files
path: Summary/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
!configure.ac
!copy-builtin
!COPYRIGHT
!Dockerfile
!LICENSE
!Makefile.am
!META
Expand Down
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM debian:bullseye-slim

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update

RUN apt-get install -y \
debhelper-compat \
devscripts

ENV WORK_DIR /zfs_app/zfs
WORKDIR ${WORK_DIR}

ADD . ${WORK_DIR}/

RUN mk-build-deps --build-dep contrib/debian/control
RUN apt install -y ./*.deb
RUN sh autogen.sh
RUN ./configure
RUN cp -a contrib/debian debian
RUN sed 's/@CFGOPTS@/--enable-debuginfo/g' debian/rules.in > debian/rules
RUN chmod +x debian/rules
RUN dch -b -M --force-distribution --distribution bullseye-truenas-unstable "Tagged from ixsystems/zfs CI"
RUN debuild -us -uc -b
RUN rm ../openzfs-zfs-dracut_*.deb
RUN rm ../openzfs-zfs-initramfs_*.deb
RUN apt-get install -y ../*.deb
Loading
Loading