forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from truenas/truenas/zfs-2.3-staging
Early zfs-2.3 for SCALE 24.10
- Loading branch information
Showing
80 changed files
with
6,189 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-native-deb: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: debian:testing | ||
steps: | ||
- name: Installing Dependencies | ||
run: | | ||
apt update > /dev/null 2>&1 | ||
apt install -y linux-image-amd64 linux-headers-amd64 debhelper-compat devscripts > /dev/null 2>&1 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build deb package | ||
run: | | ||
mk-build-deps --build-dep contrib/debian/control | ||
apt install -y ./*.deb | ||
sh autogen.sh | ||
./configure | ||
cp -a contrib/debian debian | ||
sed 's/@CFGOPTS@/--enable-debuginfo/g' debian/rules.in > debian/rules | ||
chmod +x debian/rules | ||
dch -b -M --force-distribution --distribution bullseye-truenas-unstable 'Tagged from zfs CI' | ||
debuild -us -uc -b | ||
debian/rules override_dh_binary-modules | ||
- name: Create artifacts dir | ||
run: mkdir artifacts | ||
if: success() | ||
|
||
- name: Move artifacts | ||
run: mv ../*.deb artifacts | ||
if: success() | ||
|
||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: zfs-native | ||
path: artifacts | ||
if: success() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: build_image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'truenas/zfs-2.3-release' | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: ixsystems/zfs:latest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/zfsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
zfsd_CFLAGS = $(AM_CFLAGS) | ||
zfsd_CXXFLAGS = $(AM_CXXFLAGS) | ||
zfsd_CPPFLAGS = $(AM_CPPFLAGS) | ||
|
||
sbin_PROGRAMS += zfsd | ||
|
||
zfsd_SOURCES = \ | ||
%D%/callout.cc \ | ||
%D%/case_file.cc \ | ||
%D%/vdev.cc \ | ||
%D%/vdev_iterator.cc \ | ||
%D%/zfsd.cc \ | ||
%D%/zfsd_event.cc \ | ||
%D%/zfsd_exception.cc \ | ||
%D%/zfsd_main.cc \ | ||
%D%/zpool_list.cc | ||
|
||
zfsd_LDADD = \ | ||
libnvpair.la \ | ||
libuutil.la \ | ||
libzfs_core.la \ | ||
libzfs.la | ||
|
||
zfsd_LDADD += -lrt -lprivatedevdctl -lgeom -lbsdxml -lsbuf | ||
zfsd_LDFLAGS = -pthread |
Oops, something went wrong.