Why FSAL_CEPH module of nfs-ganesha fail to build from src rpm in RHCS ?

Solution Verified - Updated -

Issue

  • When try to build nfs-ganesha 2.4.5-7 ceph FSAL code getting below compilation error :
/root/rpmbuild/BUILD/nfs-ganesha-2.4.5/src/FSAL/FSAL_CEPH/handle.c: In function 'ceph_fsal_readdir':
/root/rpmbuild/BUILD/nfs-ganesha-2.4.5/src/FSAL/FSAL_CEPH/handle.c:186:30: error: 'struct fsal_obj_handle' has no member named 'handle'
    cb_rc = cb(de.d_name, &obj->handle, &attrs, dir_state,
                              ^
make[2]: *** [FSAL/FSAL_CEPH/CMakeFiles/fsalceph.dir/handle.c.o] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/nfs-ganesha-2.4.5/src'
make[1]: *** [FSAL/FSAL_CEPH/CMakeFiles/fsalceph.dir/all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/nfs-ganesha-2.4.5/src'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.teFxVV (%build)
  • How to export cephfs over FSAL_CEPH in nfs-ganesha built from sources ?

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Ceph Storage 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content