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

DKMS: Disable weak modules #11335

Merged
merged 1 commit into from Dec 15, 2020

Conversation

gregory-lee-bartholomew
Copy link
Contributor

@gregory-lee-bartholomew gregory-lee-bartholomew commented Dec 13, 2020

Fedora does not guarantee a stable kABI, so weak modules should be dis-
abled. See the dkms man page for a more detailed explanation of the weak
module feature.

Signed-off-by: Gregory Bartholomew gregory.lee.bartholomew@gmail.com

Motivation and Context

Closes issues #11242, #11128 and #9891 (and perhaps #11320?)

Description

This pull request sets the DKMS option NO_WEAK_MODULES to "yes".

How Has This Been Tested?

The details of how this issue was tested are described in issue #11242 (special thanks to @gogi983 for doing the testing)

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:

Fedora does not guarantee a stable kABI, so weak modules should be dis-
abled. See the dkms man page for a more detailed explanation of the weak
module feature.

Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
@gogi983
Copy link

gogi983 commented Dec 13, 2020

We maybe should precise that this option need to be added either at the end of :

/usr/src/zfs-2.0.0/dkms.conf

or create a conf file in /etc/dkms/ :

/etc/dkms/zfs.conf

and append the option in it.

@gregory-lee-bartholomew
Copy link
Contributor Author

@gogi983

The pull request I just submitted should take care of it. If it goes though, the end user shouldn't need to edit any files in future releases of zfs. Hopefully this problem will be gone for good. 🙂

@gogi983
Copy link

gogi983 commented Dec 13, 2020

@gogi983

The pull request I just submitted should take care of it. If it goes though, the end user shouldn't need to edit any files in future releases of zfs. Hopefully this problem will be gone for good. slightly_smiling_face

Yep, my bad, I had a look into it after commenting... ;)

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Dec 14, 2020
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.

This looks good to me. Particularly for most distributions like Fedora where there is no stable kabi to depend on. We could consider adding a ZFS_DKMS_NO_WEAK_MODULES option to etc/default/zfs.in to allow the previous behavior to be restored. As was done for ZFS_DKMS_ENABLE_DEBUG. However, personally I don't think that's really needed.

@gregory-lee-bartholomew
Copy link
Contributor Author

I didn't test it, but based on the dkms man page, the end user should be able to override this setting by adding NO_WEAK_MODULES="no" to /etc/dkms/zfs.conf.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Dec 14, 2020
@behlendorf behlendorf merged commit e2d952c into openzfs:master Dec 15, 2020
behlendorf pushed a commit that referenced this pull request Dec 23, 2020
Fedora does not guarantee a stable kABI, so weak modules should be dis-
abled. See the dkms man page for a more detailed explanation of the weak
module feature.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
Closes #9891
Closes #11128
Closes #11242
Closes #11335
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
Fedora does not guarantee a stable kABI, so weak modules should be dis-
abled. See the dkms man page for a more detailed explanation of the weak
module feature.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
Closes openzfs#9891
Closes openzfs#11128
Closes openzfs#11242
Closes openzfs#11335
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
Fedora does not guarantee a stable kABI, so weak modules should be dis-
abled. See the dkms man page for a more detailed explanation of the weak
module feature.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gregory Bartholomew <gregory.lee.bartholomew@gmail.com>
Closes openzfs#9891
Closes openzfs#11128
Closes openzfs#11242
Closes openzfs#11335
@gregory-lee-bartholomew gregory-lee-bartholomew deleted the no_weak_modules branch June 23, 2022 03:22
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.

None yet

3 participants