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

Add xattr_handler->get() support for Android kernels #13824

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

hufman
Copy link
Contributor

@hufman hufman commented Sep 1, 2022

Motivation and Context

I would like to run ZFS on the Firefly ITX3588J system based on Rockchip RK3588, but Firefly's BSP uses Android kernel version 5.10. Android's kernel has a modified xattr_handler->get() function signature that is not supported by the current configure script.

Description

This change adds another compatibility shim for Android's unique xattr_handler->get() function signature, and an additional configure check to enable it.

How Has This Been Tested?

It builds in my local dev tree, and builds when patched into the Debian DKMS package. The resulting kernel module loaded successfully and imported my pool.

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:

Some ARM BSPs run the Android kernel, which has
a modified xattr_handler->get() function signature.
This adds support to compile against these kernels.

Signed-off-by: Walter Huf <hufman@gmail.com>
@ghost ghost added the Status: Code Review Needed Ready for review and testing label Sep 1, 2022
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.

Thanks!

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Sep 2, 2022
@behlendorf behlendorf merged commit 238cd4b into openzfs:master Sep 6, 2022
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Sep 15, 2022
Some ARM BSPs run the Android kernel, which has
a modified xattr_handler->get() function signature.
This adds support to compile against these kernels.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Walter Huf <hufman@gmail.com>
Closes openzfs#13824
beren12 pushed a commit to beren12/zfs that referenced this pull request Sep 19, 2022
Some ARM BSPs run the Android kernel, which has
a modified xattr_handler->get() function signature.
This adds support to compile against these kernels.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Walter Huf <hufman@gmail.com>
Closes openzfs#13824
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