Description of problem: Steps to Reproduce: [root@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:
Created attachment 1068383 [details] Expose Errno PR Patch to expose errno to foreign functions in gfapi in PR https://github.com/gluster/libgfapi-python/pull/7
This has been fixed by Alphadelta14 here: http://review.gluster.org/#/c/12051/