What version of Ganesha are you using? V2.8.x now restricts which symbols from  being exported by the nfs-ganesha .so, so if that’s the version you are using, that COULD be a problem.

 

Frank

 

From: Matt Benjamin [mailto:mbenjami@redhat.com]
Sent: Monday, August 5, 2019 6:46 AM
To: zhbingyin@sina.com
Cc: kjl8401 <kjl8401@126.com>; dang <dang@fprintf.net>; ganesha-devel <devel@lists.nfs-ganesha.org>
Subject: [NFS-Ganesha-Devel] Re: [NFS-Ganesha-Devel]
回复:[NFS-Ganesha-Devel]_回复:Re:_nfs-ganesha_not_load_private_Moudle

 

The most common reason I've seen for a new fsal not to load would be if it has undefined symbols or otherwise can't be loaded.  If you think it's not being loaded, you could set a gdb breakpoint on dlopen() and step through it.  I'd suggest you start with fixing your logging configuration, there is detailed information about fsals being loaded that I'd look for first.

 

Matt

 

On Mon, Aug 5, 2019 at 8:50 AM QR <zhbingyin@sina.com> wrote:

Do you have following lines in main.c of your FSAL?

const char XXfsal_name[] = "NCDFS";

struct config_block XX_param = {

        .dbus_interface_name = "org.ganesha.nfsd.config.fsal.ncdfs",

        .blk_desc.name = "NCDFS",

 

--------------------------------

 

 

----- 原始邮件 -----
发件人:kjl8401 <kjl8401@126.com>
收件人:dang@fprintf.net
抄送人:devel@lists.nfs-ganesha.org
题:[NFS-Ganesha-Devel]_回复:Re:_nfs-ganesha_not_load_private_Moudle
日期:20190805 1946

 

dear devel
  Very sorry to trouble you!I think I have checked it according to you, but I still don't know the cause of the problem。I feel very depressed because of having wasted several days on this issue。I changed the name of module from NCSF to NCDFS。Please tell me where my mistake is and thank you very much!

 

ganesha.conf

 

The log of problem are the same as before!

I am looking forward to hearing from you. Thank you very much!

 

 

 

At 2019-08-02 23:38:34, "Daniel Gryniewicz" <dang@fprintf.net> wrote:

You will generally get a faster response by posting to the mailing list (devel@lists.nfs-ganesha.org) than by mailing contributors directly.

 

FSALs are loaded by the fsal_manager in fsal_load.c.  The library that is loaded is <libdir>/ganesha/lib<fsal>.so  where <fsal> is the Name given in the config for that FSAL, transformed to lower case.  You will need to make sure there are 3 things done correctly:

1. The name of your fsal library must match the name given in the config

2. Your fsal must be installed in the correct location

3. Your fsal must have MODULE_INIT and MODULE_FINI functions built into it.

 

Without seeing the source, it's a bit hard to debug.

 

Daniel

 

On Fri, Aug 2, 2019 at 7:41 AM kjl8401 <kjl8401@126.com> wrote:

dear dang,

hello, i have a question for you about using nfs-ganesha.The private moudle NCSF do not load while compiled. you are an important contributior of this project.   I think you might meet this  problem and hope you can reply to me. Let me tell you about question.

 

the private NCSF moudle looks like load successfully

 

/FSAL/FSAL_NCSF/CMakeList.txt

libfsalncsf.so generated successfully

 

but execute the command

# ganesha.nfsd -f /etc/ganesha/ganesha.conf -L nfs-ganesha.log -N NIV_DEBUG

 

nfs-ganesha.log has not log

i do not konow what causes this problem and how to resolve.

I am looking forward to hearing from you. Thank you very much. 

Best, Sincerely,

kjl8401

 

 

_______________________________________________
Devel mailing list -- devel@lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave@lists.nfs-ganesha.org

_______________________________________________
Devel mailing list -- devel@lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave@lists.nfs-ganesha.org



--


Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-821-5101
fax.  734-769-8938
cel.  734-216-5309