forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Clean up source to get Linux builds working #119
Merged
lundman
merged 15 commits into
openzfsonwindows:windows
from
andrewc12:andrew_linux_build-7
Aug 17, 2022
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b845691
Move perfmon functions to windows
andrewc12 491a1e8
remove static for zfs_dirty_data_sync_percent
andrewc12 0307a40
uint64_t to ZFS_MODULE_ULONG
andrewc12 4760e96
add ifdef _WIN32 to zvol.c
andrewc12 b97fddb
define posix_memalign_free for other os
andrewc12 ae6c750
add vdev_file_t for other os
andrewc12 e75decc
remove duplicate check_file
andrewc12 dd5be3b
Create build_for_wsl.yaml
andrewc12 41a1df4
move functions to zvol_os.c
andrewc12 a7d201a
Fix code formatting
andrewc12 9855b2c
revert the removal of static in dsl_pool.c
andrewc12 c8ffb2c
remove zfs_dirty_data_sync_percent in dsl_pool.h
andrewc12 e280a19
make zvol_find_by_name not static
andrewc12 e229024
changed workflow name
andrewc12 9b06ed2
cstyle zpool_vdev_os.c
andrewc12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,58 @@ | ||
name: build_for_wsl | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Reclaim disk space | ||
run: | | ||
${{ github.workspace }}/.github/workflows/scripts/reclaim_disk_space.sh | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq | ||
sudo apt-get clean | ||
- name: Autogen.sh | ||
run: | | ||
./autogen.sh | ||
- name: Configure | ||
run: | | ||
./configure --enable-debug --enable-debuginfo --enable-asan --enable-ubsan | ||
- name: Make | ||
run: | | ||
make -j16 --no-print-directory --silent pkg-utils pkg-kmod | ||
#make -j$(nproc) --no-print-directory --silent pkg-utils pkg-kmod | ||
- name: get files | ||
run: ls -Rla | ||
- name: Prepare artifacts | ||
if: failure() | ||
run: | | ||
RESULTS_PATH=$(readlink -f /var/tmp/test_results/current) | ||
sudo dmesg > $RESULTS_PATH/dmesg | ||
sudo cp /var/log/syslog /var/tmp/dmesg-prerun $RESULTS_PATH/ | ||
sudo chmod +r $RESULTS_PATH/* | ||
# Replace ':' in dir names, actions/upload-artifact doesn't support it | ||
for f in $(find /var/tmp/test_results -name '*:*'); do mv "$f" "${f//:/__}"; done | ||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: Test logs Ubuntu-${{ matrix.os }} | ||
path: | | ||
/var/tmp/test_results/* | ||
!/var/tmp/test_results/current | ||
if-no-files-found: ignore | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: build result | ||
path: | | ||
*.deb | ||
*.rpm |
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 |
---|---|---|
|
@@ -170,4 +170,3 @@ void | |
after_zpool_upgrade(zpool_handle_t *zhp) | ||
{ | ||
} | ||
|
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there were two? hah neat