diff --git a/dali/base/dadfs.cpp b/dali/base/dadfs.cpp index 6ad138b9e3e..c6c1fdb2442 100644 --- a/dali/base/dadfs.cpp +++ b/dali/base/dadfs.cpp @@ -11173,12 +11173,21 @@ class CDaliDFSServer: public Thread, public CTransactionLogTracker, implements I Owned tree = getNamedPropTree(sroot,queryDfsXmlBranchName(DXB_File),"@name",tail.str(),false); if (tree) { -#ifdef _CONTAINERIZED - // This is for bare-metal clients using ~foreign pointing at a containerized/k8s setup, - // asking for the returned meta data to be remapped to point to the dafilesrv service. - if (hasMask(opts, GetFileTreeOpts::remapToService)) - remapGroupsToDafilesrv(tree, &queryNamedGroupStore()); -#endif + if (isContainerized()) + { + // This is for bare-metal clients using ~foreign pointing at a containerized/k8s setup, + // asking for the returned meta data to be remapped to point to the dafilesrv service. + if (hasMask(opts, GetFileTreeOpts::remapToService)) + { + remapGroupsToDafilesrv(tree, &queryNamedGroupStore()); + + const char *remotePlaneName = tree->queryProp("@group"); + Owned filePlane = getStoragePlane(remotePlaneName); + assertex(filePlane); + // Used by DFS clients to determine if stripe and/or alias translation needed + tree->setPropTree("Attr/_remoteStoragePlane", createPTreeFromIPT(filePlane)); + } + } Owned fdesc = deserializeFileDescriptorTree(tree,&queryNamedGroupStore(),IFDSF_EXCLUDE_CLUSTERNAMES); mb.append((int)1); // 1 == standard file