Skip to content
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

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 29, 2020

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 in rsend/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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the ZFS on Linux code style requirements.
  • I have updated the documentation accordingly.
  • I have read the contributing document.
  • I have added tests to cover my changes.
  • I have run the ZFS Test Suite with this change applied.
  • All commit messages are properly formatted and contain Signed-off-by.

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]>
@ghost ghost added Component: Test Suite Indicates an issue with the test framework or a test case Status: Code Review Needed Ready for review and testing labels Jan 29, 2020
@ghost ghost changed the title ZTS: Only use ext4 on Linux ZTS: Don't use ext4 unless on Linux Jan 30, 2020
@codecov
Copy link

codecov bot commented Jan 30, 2020

Codecov Report

Merging #9914 into master will increase coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #9914    +/-   ##
========================================
+ Coverage      79%      79%   +<1%     
========================================
  Files         384      384            
  Lines      121788   121788            
========================================
+ Hits        96645    96647     +2     
+ Misses      25143    25141     -2
Flag Coverage Δ
#kernel 80% <ø> (ø) ⬇️
#user 67% <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d8ce24...086779c. Read the comment docs.

Copy link
Member

@gmelikov gmelikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ikozhukhov
Copy link
Contributor

for example = https://bitbucket.org/dilos/dilos-illumos/src/dilos2/usr/src/test/zfs-tests/tests/functional/rsend/send-wDR_encrypted_zvol.ksh
i have fixed it to use UFS on DilOS.
could you please specify additional FS and mount flags as platform specific - it can help to me for DilOS updates too ;)

Copy link
Contributor

@behlendorf behlendorf left a 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.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jan 31, 2020
@behlendorf behlendorf merged commit 591505d into openzfs:master Jan 31, 2020
@ghost ghost deleted the zts-fstype branch January 31, 2020 17:17
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Test Suite Indicates an issue with the test framework or a test case Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants