2014-04-07, 13:50
@Memphiz @jmarshall
I am getting somewhere finally I think (time is the big issue for me, sorry!). CNFSFile::Stat can't seem to get the connection and is returning a bunch of -1s
gives:
I want to log the url but I am not sure how to get the string from
There's also all of these:
I am hoping that helps? What should I do from here
(also, should I move this to your gitbuh libnfs @Memphiz - an issue = github is a bit nicer for this sort of thing....)
I am getting somewhere finally I think (time is the big issue for me, sorry!). CNFSFile::Stat can't seem to get the connection and is returning a bunch of -1s
Code:
bool CNFSFile::Exists(const CURL& url)
{
CLog::Log(LOGDEBUG, "NFSDEBUGPRINTOUT: CNFSFile::Exists for url");
return Stat(url,NULL) == 0;
}
int CNFSFile::Stat(struct __stat64* buffer)
{
CLog::Log(LOGDEBUG, "NFSDEBUGPRINTOUT: CNFSFile::Stat for buffer");
return Stat(m_url,buffer);
}
int CNFSFile::Stat(const CURL& url, struct __stat64* buffer)
{
int ret = 0;
CSingleLock lock(gNfsConnection);
CStdString filename = "";
if(!gNfsConnection.Connect(url,filename))
CLog::Log(LOGDEBUG, "NFSDEBUGPRINTOUT: CNFSFile::Stat returning -1 as !gNFSConnection for url %s filename %s",url,filename);
return -1;
gives:
Code:
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Exists for url
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Stat returning -1 as !gNFSConnection for url ?Z/ filename (null)
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Exists for url
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Stat returning -1 as !gNFSConnection for url ?Z/ filename (null)
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Exists for url
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Stat returning -1 as !gNFSConnection for url ?Z/ filename (null)
21:46:20 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSFile::Exists for url
I want to log the url but I am not sure how to get the string from
Code:
const CURL& url
these don't work:
url.get().c_str())
url.c_str()
There's also all of these:
Code:
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists gNfsConnection.Connect failed for url ?Z/ path (null)
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists for path nfs://192.168.1.51/TVLibrary03/Band Of Brothers/
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists gNfsConnection.Connect failed for url ?Z/ path (null)
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists for path nfs://192.168.1.51/TVLibrary03/Ashes To Ashes/
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists gNfsConnection.Connect failed for url ?Z/ path (null)
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists for path nfs://192.168.1.51/TVLibrary04/Hung/
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists gNfsConnection.Connect failed for url ?Z/ path (null)
21:47:00 T:9764 DEBUG: NFSDEBUGPRINTOUT: CNFSDirectory::Exists for path nfs://192.168.1.51/TVLibrary04/How I Met Your Mother/
I am hoping that helps? What should I do from here
(also, should I move this to your gitbuh libnfs @Memphiz - an issue = github is a bit nicer for this sort of thing....)