[Bugs] [Bug 1196161] New: libgfapi-python: Errno not populated properly by ctypes
bugzilla at redhat.com
bugzilla at redhat.com
Wed Feb 25 12:08:35 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1196161
Bug ID: 1196161
Summary: libgfapi-python: Errno not populated properly by
ctypes
Product: GlusterFS
Version: mainline
Component: libgfapi-python
Assignee: bugs at gluster.org
Reporter: ppai at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
Steps to Reproduce:
[root at vm0 libgfapi-python]# python
Python 2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from glusterfs import gfapi
>>> v = gfapi.Volume("vm0", "test")
>>> v.mount()
0
>>> v.stat('/a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "glusterfs/gfapi.py", line 558, in stat
raise OSError(err, os.strerror(err))
OSError: [Errno 0] Success
>>>
Expected results:
Proper errno to be set. In the above example errno to be ENOENT.
Some additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list