find functions now return errors. closes #24

This commit is contained in:
Antonio SJ Musumeci 2014-08-16 13:59:55 -04:00
parent 8f35406000
commit cfe7609bcd
21 changed files with 123 additions and 111 deletions

View file

@ -49,12 +49,13 @@ _open(const fs::SearchFunc searchFunc,
const int flags,
uint64_t &fh)
{
int fd;
int fd;
int rv;
fs::PathVector paths;
searchFunc(srcmounts,fusepath,paths);
if(paths.empty())
return -ENOENT;
rv = searchFunc(srcmounts,fusepath,paths);
if(rv == -1)
return -errno;
fd = ::open(paths[0].full.c_str(),flags);
if(fd == -1)