-
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
Changes from 8 commits
b845691
491a1e8
0307a40
4760e96
b97fddb
ae6c750
e75decc
dd5be3b
41a1df4
a7d201a
9855b2c
c8ffb2c
e280a19
e229024
9b06ed2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: build_for_wsl.yaml | ||
|
||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,11 @@ typedef struct vdev_file { | |
uint64_t vdev_win_offset; /* soft partition start */ | ||
uint64_t vdev_win_length; /* soft partition length */ | ||
} vdev_file_t; | ||
#else | ||
/* Grabbed from https://github.com/openzfs/zfs/blob/1d3ba0bf01020f5459b1c28db3979129088924c0/include/sys/vdev_file.h#L36 */ | ||
typedef struct vdev_file { | ||
zfs_file_t* vf_file; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: "*vf_file;" |
||
} vdev_file_t; | ||
#endif | ||
|
||
extern void vdev_file_init(void); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,8 +99,8 @@ | |
* capped at zfs_dirty_data_max_max. It can also be overridden with a module | ||
* parameter. | ||
*/ | ||
uint64_t zfs_dirty_data_max = 0; | ||
uint64_t zfs_dirty_data_max_max = 0; | ||
ZFS_MODULE_ULONG zfs_dirty_data_max = 0; | ||
ZFS_MODULE_ULONG zfs_dirty_data_max_max = 0; | ||
int zfs_dirty_data_max_percent = 10; | ||
int zfs_dirty_data_max_max_percent = 25; | ||
|
||
|
@@ -117,7 +117,7 @@ ZFS_MODULE_ULONG zfs_wrlog_data_max = 0; | |
* zfs_dirty_data_max), push out a txg. This should be less than | ||
* zfs_vdev_async_write_active_min_dirty_percent. | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we are removing static? |
||
static int zfs_dirty_data_sync_percent = 20; | ||
int zfs_dirty_data_sync_percent = 20; | ||
|
||
/* | ||
* Once there is this amount of dirty data, the dmu_tx_delay() will kick in | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1740,6 +1740,9 @@ zvol_fini_impl(void) | |
} | ||
|
||
/* ZFS ZVOLDI */ | ||
// HACK FIXME | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't these be in |
||
#ifdef _WIN32 | ||
|
||
_Function_class_(PINTERFACE_REFERENCE) | ||
void | ||
IncZvolRef(PVOID Context) | ||
|
@@ -1771,3 +1774,4 @@ zvol_name2zvolState(const char *name, uint32_t *openCount) | |
mutex_exit(&zv->zv_state_lock); | ||
return (zv); | ||
} | ||
#endif |
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