Skip to content

Commit

Permalink
[XrdCeph] Account for return Ceph xattr return codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jan 18, 2017
1 parent 3a8339b commit 206021c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/XrdOfs/XrdOfs.cc
Expand Up @@ -1372,7 +1372,11 @@ int XrdOfs::chksum( csFunc Func, // In

// See if all went well
//
if (rc >= 0 || rc == -ESTALE || rc == -ESRCH)
#ifdef ENOATTR
if (rc >= 0 || rc == -ENOATTR || rc == -ESTALE || rc == -ESRCH)
#else
if (rc >= 0 || rc == -ENODATA || rc == -ESTALE || rc == -ESRCH)
#endif
{if (rc >= 0) {cksData.Get(buff, MAXPATHLEN); rc = 0;}
else {*buff = 0; rc = ENOENT;}
einfo.setErrInfo(rc, buff);
Expand Down

0 comments on commit 206021c

Please sign in to comment.