-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ZTS: Don't use ext4 unless on Linux #9914
Conversation
And while here, add a workaround for FreeBSD to ensure dirty data is synced before taking a snapshot, by remounting read-only, then remount again read-write after the snapshot. Signed-off-by: Ryan Moeller <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9914 +/- ##
========================================
+ Coverage 79% 79% +<1%
========================================
Files 384 384
Lines 121788 121788
========================================
+ Hits 96645 96647 +2
+ Misses 25143 25141 -2
Continue to review full report at Codecov.
|
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.
LGTM
for example = https://bitbucket.org/dilos/dilos-illumos/src/dilos2/usr/src/test/zfs-tests/tests/functional/rsend/send-wDR_encrypted_zvol.ksh |
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.
Setting NEWFS_DEFAULT_FS
to ext4 on Linux should be fine as well. That could be done in another PR if we decide it's a helpful simplification.
And while here, add a workaround for FreeBSD to ensure dirty data is synced before taking a snapshot, by remounting read-only, then remount again read-write after the snapshot. Reviewed-by: John Kennedy <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes openzfs#9914
Motivation and Context
EXT4 is a Linux filesystem. Other platforms can use the default FS type.
Description
Similarly to
slog/slog_replay_volume
, use the default FS inrsend/send-wDR_encrypted_zvol
except on Linux, where ext4 is preferred.And while here, add a workaround for FreeBSD to ensure dirty data is synced before taking a snapshot, by remounting read-only, then remount again read-write after the snapshot.
How Has This Been Tested?
This has been running in our ZTS for a while.
Types of changes
Checklist:
Signed-off-by
.