Ashish Sangwan has uploaded this change for review.
Updating component_log_level not getting reflected in FSALs.
Compile ganesha.nfsd binary with fPIC
After creating libganesha_nfsd.so, the component_log_level is moved there.
Doing a readelf on the ganesha.nfsd binary tells that we are doing copy of
component_log_level:
0000006041f0 003800000005 R_X86_64_COPY 00000000006041f0 component_log_level + 0
When we update component_log_level, its only updating the one inside libganesha_nfsd.so
All the FSALs which are dlopened with RTLD_DEEPBIND end up using the component_log_level
that is defined in the ganesha.nfsd
There are also other variables which have copies like nfs_ServerBootTime, nfs_config_path
To avoid this, compile the executale with fPIC
Signed-off-by: ashish.sangwan <ashishsangwan2@gmail.com>
Change-Id: I249cf196f78c43e6162f86d04880f2b8b418e262
---
M src/CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/79/469779/1
To view, visit change 469779. To unsubscribe, or for help writing mail filters, visit settings.