Skip to content

Commit

Permalink
[Server] Remove the hack for direct cache access setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and simonmichal committed Oct 16, 2019
1 parent 110956d commit 8e91462
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
5 changes: 2 additions & 3 deletions src/XrdOfs/XrdOfs.cc
Expand Up @@ -651,9 +651,8 @@ int XrdOfsFile::open(const char *path, // In
//
if (XrdOfsFS->OssIsProxy)
{if (myTPC) open_flag |= O_NOFOLLOW;
if (error.getUCap() & XrdOucEI::u48pls
|| (error.getUCap() & XrdOucEI::uUrlOK &&
error.getUCap() & XrdOucEI::uLclF)) open_flag |= O_DIRECT;
if (error.getUCap() & XrdOucEI::uUrlOK &&
error.getUCap() & XrdOucEI::uLclF) open_flag |= O_DIRECT;
}

// Open the file
Expand Down
1 change: 0 additions & 1 deletion src/XrdOuc/XrdOucErrInfo.hh
Expand Up @@ -66,7 +66,6 @@ static const int uIPv64 = 0x04000000; //! ucap: Supports IPv6|IPv4 info and
//! uIPv4 says IPv4 is prefered
static const int uPrip = 0x02000000; //! ucap: Client is on a private net
static const int uLclF = 0x01000000; //! ucap: Client supports "file://"
static const int u48pls = 0x00800000; //! ucap: Undocumented removed in R5

inline void clear(const char *usr=0, int uc=0)
{code=0; ucap = uc; message[0]='\0';
Expand Down
6 changes: 3 additions & 3 deletions src/XrdXrootd/XrdXrootdProtocol.hh
Expand Up @@ -375,9 +375,9 @@ XrdLink *Link;
XrdBuffer *argp;
XrdXrootdFileTable *FTab;
XrdXrootdMonitor::User Monitor;
int clientPV;
int clientRN;
int reserved; // In R5 clientPV will include clientRN
int clientPV; // Protocol version + capabilities
int clientRN; // Release as maj.min.patch (1 byte each).
int reserved;
short rdType;
char Status;
unsigned char CapVer;
Expand Down
1 change: 1 addition & 0 deletions src/XrdXrootd/XrdXrootdTransit.cc
Expand Up @@ -258,6 +258,7 @@ void XrdXrootdTransit::Init(XrdXrootd::Bridge::Result *respP, // Private
Response.Set(linkP);
Response.Set(this);
strcpy(Entity.prot, "host");
strncpy(Entity.pros, protP, sizeof(Entity.pros));
Entity.host = (char *)linkP->Host();

// Develop a trace identifier
Expand Down
18 changes: 8 additions & 10 deletions src/XrdXrootd/XrdXrootdXeq.cc
Expand Up @@ -1015,16 +1015,13 @@ int XrdXrootdProtocol::do_Login()
(clientPV & XrdOucEI::uIPv4 ? '4' : '6'));
Entity.moninfo = strdup(apBuff);
}
// MT-REBASE - if to be removed, also knock out char *rnumb and its print-out
// into abBuff
// if (rnumb)
// {int majr, minr, pchr;
// if (sscanf(rnumb, "v%d.%d.%d", &majr, &minr, &pchr) == 3)
// {clientRN = (majr<<16) | ((minr<<8) | pchr);
// if (majr > 4 || (majr == 4 && minr >= 8))
// clientPV |= XrdOucEI::u48pls; //TODO: Temporary hack.
// } else if (sscanf(rnumb, "v%d-%*x", &majr) == 1) clientRN = -1;
// }

if (rnumb)
{int majr, minr, pchr;
if (sscanf(rnumb, "v%d.%d.%d", &majr, &minr, &pchr) == 3)
clientRN = (majr<<16) | ((minr<<8) | pchr);
else if (sscanf(rnumb, "v%d-%*x", &majr) == 1) clientRN = -1;
}
if (appXQ) AppName = strdup(appXQ);
}

Expand Down Expand Up @@ -3698,6 +3695,7 @@ bool XrdXrootdProtocol::logLogin(bool xauth)
// Assign unique identifier to the final SecEntity object
//
Client->ueid = mySID;
strcpy(Client->pros, "xroot");
return true;
}

Expand Down

0 comments on commit 8e91462

Please sign in to comment.