From 70704c788a79962fd43f70e8732a09e19fe8caa2 Mon Sep 17 00:00:00 2001 From: Andrew Hanushevsky Date: Wed, 4 Mar 2015 23:28:23 -0800 Subject: [PATCH] Do not debit space when relocating a file within the same partition. This avoids EONOSPC errors when converting old spaces to new XA spaces. --- src/XrdOss/XrdOssReloc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdOss/XrdOssReloc.cc b/src/XrdOss/XrdOssReloc.cc index 8c12f3ea69b..b3f9625904b 100644 --- a/src/XrdOss/XrdOssReloc.cc +++ b/src/XrdOss/XrdOssReloc.cc @@ -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;