Skip to content

Commit

Permalink
[cmsd] Allow auto-configuration for Xcache using pfcache export attri…
Browse files Browse the repository at this point in the history
…bute.
  • Loading branch information
abh3 committed Jun 3, 2020
1 parent b2ca319 commit 8becd9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/XrdCms/XrdCmsConfig.cc
Expand Up @@ -1021,6 +1021,9 @@ int XrdCmsConfig::Manifest()
int XrdCmsConfig::MergeP()
{
static const unsigned long long stage4MM = XRDEXP_STAGEMM & ~XRDEXP_STAGE;
static const unsigned long long stageAny = XRDEXP_PFCACHE | XRDEXP_STAGE;
static const unsigned long long readOnly = XRDEXP_PFCACHE | XRDEXP_NOTRW;

XrdOucPList *plp = PexpList.First();
XrdCmsPList *pp;
XrdCmsPInfo opinfo, npinfo;
Expand All @@ -1035,9 +1038,9 @@ int XrdCmsConfig::MergeP()
while(plp)
{Opts = plp->Flag();
if (!(Opts & XRDEXP_LOCAL))
{npinfo.rwvec = (Opts & (XRDEXP_GLBLRO | XRDEXP_NOTRW) ? 0 : 1);
if (export2MM) npinfo.ssvec = (Opts & stage4MM ? 1 : 0);
else npinfo.ssvec = (Opts & XRDEXP_STAGE ? 1 : 0);
{npinfo.rwvec = (Opts & (XRDEXP_GLBLRO | readOnly) ? 0 : 1);
if (export2MM) npinfo.ssvec = (Opts & stage4MM ? 1 : 0);
else npinfo.ssvec = (Opts & stageAny ? 1 : 0);
if (!PathList.Add(plp->Path(), &npinfo))
Say.Emsg("Config","Ignoring duplicate export path",plp->Path());
else if (npinfo.ssvec) DiskSS = 1;
Expand Down

0 comments on commit 8becd9f

Please sign in to comment.