Skip to content

Commit

Permalink
Do not debit space when relocating a file within the same partition.
Browse files Browse the repository at this point in the history
This avoids EONOSPC errors when converting old spaces to new XA spaces.
  • Loading branch information
abh3 authored and ljanyst committed Apr 16, 2015
1 parent 0022229 commit 70704c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdOss/XrdOssReloc.cc
Expand Up @@ -137,7 +137,7 @@ int XrdOssSys::Reloc(const char *tident, const char *path,
// Allocate space in the cache. Note that the target must be an xa cache
//
aInfo.aMode = buf.st_mode & S_IAMB;
aInfo.cgSize = buf.st_size;
aInfo.cgSize = (Pure ? 0 : buf.st_size);
aInfo.cgName = cgbuff;
if ((PF.datfd = datfd = XrdOssCache::Alloc(aInfo)) < 0) return datfd;
if (!aInfo.cgPsfx) return -ENOTSUP;
Expand Down

0 comments on commit 70704c7

Please sign in to comment.