Skip to content

Instantly share code, notes, and snippets.

@prashanthpai
Created October 12, 2015 07:03
Show Gist options
  • Save prashanthpai/28fb149f004645c2afb9 to your computer and use it in GitHub Desktop.
Save prashanthpai/28fb149f004645c2afb9 to your computer and use it in GitHub Desktop.
root# 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.
>>> import os
>>> from swift.common.utils import O_TMPFILE
>>> os.open("/mnt/test/", os.O_WRONLY | O_TMPFILE)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 95] Operation not supported: '/mnt/test/'
>>> import errno
>>> errno.EOPNOTSUPP
95
>>> 
[~/swift] (linkat)
root# mount | grep glusterfs
localhost:test on /mnt/test type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment