Skip to content
Snippets Groups Projects
Commit 9f994126 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

EOS is connected now

parent 3e6e5b89
Branches
Tags
No related merge requests found
......@@ -97,8 +97,10 @@ void cta::EosNS::createEntry(const RemotePath &path, const RemoteFileStatus &sta
if(status.mode & S_IROTH) mode|= XrdCl::Access::Mode::OR;
if(status.mode & S_IWOTH) mode|= XrdCl::Access::Mode::OW;
if(status.mode & S_IXOTH) mode|= XrdCl::Access::Mode::OX;
std::string eosPath(std::string("root://")+m_xrootServerURL+"/"+path.getAfterScheme());
XrdCl::XRootDStatus s = newFile.Open(eosPath, XrdCl::OpenFlags::Flags::Delete, mode);
XrdCl::OpenFlags::Flags flags;
flags |= XrdCl::OpenFlags::Flags::Delete;
std::string eosPath(std::string("root://")+m_xrootServerURL+path.getAfterScheme());
XrdCl::XRootDStatus s = newFile.Open(eosPath, flags, mode);
if(!s.IsOK()) {
throw cta::exception::Exception(std::string("Error creating EOS file/dir ")+eosPath+" Reason: "+s.GetErrorMessage());
}
......
......@@ -106,7 +106,7 @@ extern "C"
{
XrdSfsFileSystem *XrdSfsGetFileSystem (XrdSfsFileSystem* native_fs, XrdSysLogger* lp, const char* configfn)
{
g_eosNs.createEntry(cta::RemotePath("mock://file1"), cta::RemoteFileStatus(cta::UserIdentity(getuid(), getgid()), 0777, 12345));
g_eosNs.createEntry(cta::RemotePath("eos://eos/kruse/file1"), cta::RemoteFileStatus(cta::UserIdentity(getuid(), getgid()), 0777, 0));
return new XrdProFilesystem(
&g_castorNs,
&g_OStoreDB,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment