summaryrefslogtreecommitdiffstats
path: root/glusterfs/api.py
diff options
context:
space:
mode:
authorThiago da Silva <thiago@redhat.com>2015-02-19 17:00:11 -0500
committerThiago da Silva <thiago@redhat.com>2015-02-19 17:00:11 -0500
commitfc318e921b073cdbe9fbe62b8c893634b057f0e8 (patch)
tree62623b3d198d2393089846b0e3c0daed42cbe94a /glusterfs/api.py
parentec407b4d61b15506e6ae5b3f28d3983af4f28457 (diff)
adding chmod and fchmod
Change-Id: Iba5f4e72a257adeb8ec78b267dfdef26a1ec66f1 Signed-off-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'glusterfs/api.py')
-rwxr-xr-xglusterfs/api.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/glusterfs/api.py b/glusterfs/api.py
index 6bc19ea..1ecc34a 100755
--- a/glusterfs/api.py
+++ b/glusterfs/api.py
@@ -126,6 +126,15 @@ glfs_stat = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_void_p, ctypes.c_char_p,
glfs_fstat = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_void_p, ctypes.POINTER(
Stat))(('glfs_fstat', client))
+glfs_chmod = ctypes.CFUNCTYPE(ctypes.c_int,
+ ctypes.c_void_p,
+ ctypes.c_char_p,
+ ctypes.c_ushort)(('glfs_chmod', client))
+
+glfs_fchmod = ctypes.CFUNCTYPE(ctypes.c_int,
+ ctypes.c_void_p,
+ ctypes.c_ushort)(('glfs_fchmod', client))
+
glfs_chown = ctypes.CFUNCTYPE(ctypes.c_int,
ctypes.c_void_p,
ctypes.c_char_p,