[root@afs-centos74 libnfs-python]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libnfs
>>> nfs=libnfs.NFS('nfs://10.15.196.52/sukruth?vers=4')
>>> a = nfs.open('/foo-test', mode='w+')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libnfs/__init__.py", line 187, in open
return NFSFH(self._nfs, path, mode=mode, codec=codec)
File "libnfs/__init__.py", line 81, in __init__
raise ValueError(_errmsg)
ValueError: open failed: Input/output error
>>>
"""