This repository was archived by the owner on Aug 27, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 98
RFC for zfs tests. #246
Closed
Closed
RFC for zfs tests. #246
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
427f852
document how to install NixOS to a zfs root
jcumming 10ca49f
installer tests for ZFS root (zroot)
jcumming e696210
zfs task cleanup
jcumming 1461067
zfs does not work with less than 768M of memory
jcumming 0425ab7
support zfs in the iso
jcumming 5fdb8b7
ztest seems to expose some bugs in writeback mode
jcumming 76616c6
tweak swap zvol for lower memory
jcumming 335bef0
zfs unit tests
jcumming 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,33 @@ | ||
| { pkgs, ... }: | ||
|
|
||
| { | ||
| nodes = { | ||
| machine = | ||
| { pkgs, config, ... }: | ||
|
|
||
| { | ||
| virtualisation.emptyDiskImages = [ 4096 ]; | ||
| boot.supportedFilesystems = [ "zfs" "ext4" ] ; | ||
| }; | ||
| }; | ||
|
|
||
| testScript = '' | ||
| startAll; | ||
|
|
||
| $machine->waitForUnit("default.target"); | ||
|
|
||
| # this is a work in progress, it currently fails with: | ||
| # pack/bigT mismatch in 0x7f5ff010cf60/0x7f5ff068fea8 | ||
| # probably some disk io synchronization problems. | ||
|
|
||
| # we don't directly create a zfs filesystem here we create a ext3 | ||
| # filesystem and the the zfs unit tests use it.. | ||
|
|
||
| $machine->succeed("mkfs.ext3 -L ztest /dev/vdb"); | ||
| $machine->succeed("mkdir /ztest"); | ||
| $machine->succeed("mount LABEL=ztest /ztest"); | ||
| $machine->succeed("echo Running ZFS unit tests, this may take a while..."); | ||
| $machine->succeed("ztest -f /ztest -t1 -VVV"); # single threaded | ||
| $machine->shutdown; | ||
| ''; | ||
| } |
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.
This should probably be wrapped down to 72 columns.