summaryrefslogtreecommitdiff
path: root/fuse.py
diff options
context:
space:
mode:
authorverigak <verigak@1ebed218-b0a3-11dd-8075-91d349ce83ee>2010-01-02 17:20:55 +0000
committerverigak <verigak@1ebed218-b0a3-11dd-8075-91d349ce83ee>2010-01-02 17:20:55 +0000
commit7d04fe5a34785f9116291e1c92f71a13dbfc2447 (patch)
treee00620bebc4e80471319f4daa13a7d2414f4af14 /fuse.py
parent32bc93ffbff3144a97f33bcc6cc13d098781217d (diff)
downloadfusepy-7d04fe5a34785f9116291e1c92f71a13dbfc2447.tar.gz
Changed default read implementation to raise a more meaningful error.
git-svn-id: http://fusepy.googlecode.com/svn/trunk@39 1ebed218-b0a3-11dd-8075-91d349ce83ee
Diffstat (limited to 'fuse.py')
-rw-r--r--fuse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse.py b/fuse.py
index 882ccdc..abdbc5b 100644
--- a/fuse.py
+++ b/fuse.py
@@ -579,7 +579,7 @@ class Operations(object):
def read(self, path, size, offset, fh):
"""Returns a string containing the data requested."""
- raise OSError(ENOENT, '')
+ raise OSError(EIO, '')
def readdir(self, path, fh):
"""Can return either a list of names, or a list of (name, attrs, offset)