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

RHEL 7.5 compat: FMODE_KABI_ITERATE #7463

Merged
merged 1 commit into from May 2, 2018

Commits on May 2, 2018

  1. RHEL 7.5 compat: FMODE_KABI_ITERATE

    As of RHEL 7.5 the mainline fops.iterate() method was added to
    the file_operations structure and is correctly detected by the
    configure script.
    
    Normally this is what we want, but in order to maintain KABI
    compatibility the RHEL change additionally does the following:
    
    * Requires that callers intending to use this extended interface
      set the FMODE_KABI_ITERATE flag on the file structure when
      opening the directory.
    * Adds the fops.iterate() method to the end of the structure,
      without removing fops.readdir().
    
    This change updates the configure check to ignore the RHEL 7.5+
    variant of fops.iterate() when detected.  Instead fallback to
    the fops.readdir() interface which will be available.
    
    Finally, add the 'zpl_' prefix to the directory context wrappers
    to avoid colliding with the kernel provided symbols when both
    the fops.iterate() and fops.readdir() are provided by the kernel.
    
    Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
    Issue openzfs#7460
    behlendorf committed May 2, 2018
    Copy the full SHA
    983bbc7 View commit details
    Browse the repository at this point in the history