Skip to content
Snippets Groups Projects
Commit 7d7b2b94 authored by Steven Murray's avatar Steven Murray
Browse files

FSctl returns ENOENT if path is not /eos_cta_interface

parent 5100986a
Branches
Tags
No related merge requests found
......@@ -67,8 +67,10 @@ int FakeEosCmd::exceptionThrowingMain(const int argc, char *const *const argv) {
std::cout << "status.IsError()=" << (status.IsError() ? "true" : "false") << std::endl;
std::cout << "status.IsFatal()=" << (status.IsFatal() ? "true" : "false") << std::endl;
std::cout << "status.IsOK()=" << (status.IsOK() ? "true" : "false") << std::endl;
std::cout << "response->GetSize()=" << response->GetSize() << std::endl;
std::cout << "response->ToString()=" << response->ToString() << std::endl;
if(nullptr != smartResponse.get()) {
std::cout << "response->GetSize()=" << response->GetSize() << std::endl;
std::cout << "response->ToString()=" << response->ToString() << std::endl;
}
return 0;
}
......
......@@ -101,6 +101,13 @@ int XrdCtaFilesystem::FSctl(const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eIn
(*m_log)(log::INFO, "FSctl called", params);
if(strcmp(arg1.get(), "/eos_cta_interface") && strcmp(arg1.get(), "/eos_cta_interface/")) {
std::ostringstream msg;
msg << arg1.get() << " does not exist";
eInfo.setErrInfo(ENOENT, msg.str().c_str());
return SFS_ERROR;
}
const size_t sizeOfMsg = 10*1024*1024;
char *const msg = static_cast<char *>(malloc(sizeOfMsg));
if(nullptr == msg) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment