-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can we export XRDLCLROOT when N2N lib is used? #1341
Comments
Well, the reason XRDLCLROOT is not exported when an N2N is used is because
it may not relevant. The N2N makes it's own translation and whether or
not it uses localroot is not known. So, if the N2N actually does use
localroot in the "common" way, it should export it.
…On Thu, 26 Nov 2020, Wei Yang wrote:
In https://github.com/xrootd/xrootd/blob/master/src/XrdOuc/XrdOucN2NLoader.cc#L60, XRDLCLROOT is exported where there is no N2N library to load, but is not exported when a N2N library is in use.
Is there a reason to not export XRDLCLROOT when a N2N library is used? Can we export XRDLCLROOT in all cases?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1341
|
I found that In XrdOucName2Name::lfn2pfn(), the returned pfn has to include localroot otherwise it won't work. |
Could you give me more context here? There is no requirement for lfn2pfn to include localroot and many do not. |
For example, I have the following in xrootd config: all.export /data For a test, I use an dummy N2N that does nothing but return a pfn=lfn. When user access this file /data/myfile, xrootd will call XrdOucName2Name::lfn2pfn(lfn=/data/myfile, pfn, len). If I return pfn=/data/myfile, xrootd will tell user that the file is not found / can not open. If I return pfn=/tmp/data/myfile, then everything will be OK. |
OK, but you wrote the N2N so you know that you will be using the localroot. When the plugin gets loaded you are told what the localroot is set to. So, use that information. See XrdOucName2Name::XrdOucgetName2Name and just follow the recipe. |
Indeed that is what I need. Thanks! |
close |
In https://github.com/xrootd/xrootd/blob/master/src/XrdOuc/XrdOucN2NLoader.cc#L60, XRDLCLROOT is exported where there is no N2N library to load, but is not exported when a N2N library is in use.
Is there a reason to not export XRDLCLROOT when a N2N library is used? Can we export XRDLCLROOT in all cases?
The text was updated successfully, but these errors were encountered: