diff --git a/CEP/BB/MS/include/MS/VdsMaker.h b/CEP/BB/MS/include/MS/VdsMaker.h index 41d50daa06aa804d310f053ec8174571387a506c..a19df392d256377b982f99f1282568ce581956b3 100644 --- a/CEP/BB/MS/include/MS/VdsMaker.h +++ b/CEP/BB/MS/include/MS/VdsMaker.h @@ -26,7 +26,7 @@ #include <lofar_config.h> #include <Common/lofar_vector.h> #include <Common/lofar_string.h> - +#include <MWCommon/ClusterDesc.h> #include <ms/MeasurementSets/MeasurementSet.h> #include <casa/Arrays/Vector.h> @@ -65,6 +65,10 @@ namespace LOFAR { static void getDataFileInfo (casa::MS& ms, string& name, bool& regular, vector<int>& tileShape, vector<int>& cubeShape); + + // Find the file system on which the given file is located. + static string findFileSys (const std::string& fileName, + const CEP::ClusterDesc& cdesc); }; } diff --git a/CEP/BB/MS/src/VdsMaker.cc b/CEP/BB/MS/src/VdsMaker.cc index da536c8ea605d5c69c592c145bebc43d47465717..d799d99b7d91e61542b6dfba4eebcbcfad819ada 100644 --- a/CEP/BB/MS/src/VdsMaker.cc +++ b/CEP/BB/MS/src/VdsMaker.cc @@ -141,7 +141,8 @@ void VdsMaker::getDataFileInfo (MS& ms, string& name, bool& regular, } } -string findFileSys (const std::string& fileName, const ClusterDesc& cdesc) +string VdsMaker::findFileSys (const std::string& fileName, + const ClusterDesc& cdesc) { // Find the file system by looking for a matching mountpoint. const std::vector<NodeDesc>& nodes = cdesc.getNodes();