summaryrefslogtreecommitdiff
path: root/netfs/fuse
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-06-04 21:24:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-06-04 21:24:20 +0100
commitaa368b7fc3de10150e53a6807658103cd935c6cf (patch)
treec46ca15ea8321c157040fa6cd3ca6c37523b84ce /netfs/fuse
parentMove libfusepp stuff into netfs, that's all it's gonna be used in (diff)
downloadnetfs-aa368b7fc3de10150e53a6807658103cd935c6cf.tar.bz2
netfs-aa368b7fc3de10150e53a6807658103cd935c6cf.tar.xz
netfs-aa368b7fc3de10150e53a6807658103cd935c6cf.zip
EIO makes more sense than ENOSYS when remote operations can't be performed
Diffstat (limited to 'netfs/fuse')
-rw-r--r--netfs/fuse/fuseApp.cpp4
-rw-r--r--netfs/fuse/fuseAppBase.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp
index de75c6f..d4d7866 100644
--- a/netfs/fuse/fuseApp.cpp
+++ b/netfs/fuse/fuseApp.cpp
@@ -242,7 +242,7 @@ NetFS::FuseApp::onError(const std::exception & e) throw()
return 0;
}
catch (...) {
- return -ENOSYS;
+ return -EIO;
}
}
if (dynamic_cast<const Ice::RequestFailedException *>(&e)) {
@@ -253,7 +253,7 @@ NetFS::FuseApp::onError(const std::exception & e) throw()
return 0;
}
catch (...) {
- return -ENOSYS;
+ return -EIO;
}
}
if (dynamic_cast<const NetFS::AuthError *>(&e)) {
diff --git a/netfs/fuse/fuseAppBase.h b/netfs/fuse/fuseAppBase.h
index 388ac5b..b044f99 100644
--- a/netfs/fuse/fuseAppBase.h
+++ b/netfs/fuse/fuseAppBase.h
@@ -160,7 +160,7 @@ class DLL_PUBLIC FuseAppBase {
}
catch (...) {
fuseApp->logf(LOG_ERR, "Unknown exception calling %s", typeid(f).name());
- return -ENOSYS;
+ return -EIO;
}
}
};