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

ztest: Use fnvlist_* instead of VERIFYing nvlist_* #11441

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jan 7, 2021

Motivation and Context

Simplify ztest by using fnvlist functions to verify success.

Description

Use fnvlist functions, add a missing wrapper for nvlist_lookup_nvlist_array()

How Has This Been Tested?

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)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@ghost ghost added the Status: Code Review Needed Ready for review and testing label Jan 7, 2021
@ghost
Copy link
Author

ghost commented Jan 7, 2021

I guess I need to bump the libnvpair version like this?

--- a/lib/libnvpair/Makefile.am
+++ b/lib/libnvpair/Makefile.am
@@ -40,7 +40,7 @@ if !ASAN_ENABLED
 libnvpair_la_LDFLAGS += -Wl,-z,defs
 endif

-libnvpair_la_LDFLAGS += -version-info 3:0:0
+libnvpair_la_LDFLAGS += -version-info 3:0:1

 # Library ABI
 EXTRA_DIST = libnvpair.abi libnvpair.suppr

@behlendorf
Copy link
Contributor

behlendorf commented Jan 7, 2021

We'd need to bump the library version to 3:1:0 since you're adding a new function and update the libnvpair.abi file. Though in this case I don't think it would be worthwhile. Why don't we instead simply drop the fnvlist_lookup_nvlist_array change to avoid changing the library ABI at all.

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
@ghost
Copy link
Author

ghost commented Jan 8, 2021

  • Avoid adding fnvlist_lookup_nvlist_array
  • Rebase

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jan 8, 2021
@behlendorf behlendorf merged commit bea3fc7 into openzfs:master Jan 11, 2021
@ghost ghost deleted the ztest branch January 11, 2021 17:49
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
Simplify ztest by using fnvlist functions to verify success.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes openzfs#11441
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
Simplify ztest by using fnvlist functions to verify success.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes openzfs#11441
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants