Generally these steps need to be taken: 1) Compile the custom methods into a shared library 2) Place the library in the class load path of the OSD 3) Invoke the methods via librados exec method The easiest way to do this is to use the ceph build system by adding your module to src/cls/Makefile.am using the existing rules in that file as a template. This will ensure the library is in the correct path if you are using a vstart.sh single-node cluster, and will install the library correctly in the installation (e.g. /usr/lib/rados-classes/..). If you want to inject the custom method into an existing cluster, you’ll need to make sure the library is available on all nodes. On Nov 12, 2013, at 11:23 PM, 鹏 <wkp4666@xxxxxxx> wrote: > Hi all! > I try to use the rados_exec methods, it allows librados users to call the custom methods ! > my ceph version is 0.62。 It is worked for the class cls_rbd, for it is alerdy build and load into the ceph class(/usr/local/lib/rados-class). but I do not konw how to build and load a custom methods. > > for example, cls_crypto.cc ,which lay in ceph/src/ , have not bulid and load into the ceph。 how could I use the rados_exec call this method? > > the loadclass.sh , which I download form github, can load the methods in to the ceph ! and how to use it ! > #./loadclass.sh ceph-0.62/src/cls_crypto.cc > mn: ceph-0.62/src/cls_crypto.cc : File Format mot recngced! > > Any points would be much appreciated!!! > > > thinks , > peng > > > > > > > > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com