Print

Print


Hi Elvin,

I looked and trying first XrdSfsGetFileSystem2() followed by XrdSfsGetFileSystem()it's potentially doable but would take some amount of work and make the code pretty ugly simply because plugins can be named versioned (i.e. libXrdxxx-4.so otherwise linXrdxxx.so) which complicates things.

So, I propose the following solution:
1) We find the right library by searching for XrdSfsGetFileSystem(). So, this entry point must exists (in your case it can simply return 0).
2) Once we establish the right library, we check if it also contains XrdSfsGetFileSystem2() and if it does, we will invoke that entry point with the extra parameter in lieu of XrdSfsGetFileSystem().

Would that be an acceptable solution?

Andy

---
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/161#issuecomment-63015887

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1