diff options
author | Thiago da Silva <thiago@redhat.com> | 2015-02-19 14:59:48 -0500 |
---|---|---|
committer | Thiago da Silva <thiago@redhat.com> | 2015-02-20 13:49:06 -0500 |
commit | b5a327eb9c0c1ec3f77a36676d6cc9878353ec1b (patch) | |
tree | 37714687e54129a0352acfd10ce30e903f82314b /glusterfs/api.py | |
parent | ec407b4d61b15506e6ae5b3f28d3983af4f28457 (diff) |
adding functions setfsuid and setfsgid
Did not add functional tests at the moment. This function requires
superuser privilege to execute
Change-Id: I35c0a6b3eba60586da64ccfb4dc818d403542f41
Signed-off-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'glusterfs/api.py')
-rwxr-xr-x | glusterfs/api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfs/api.py b/glusterfs/api.py index 6bc19ea..037c893 100755 --- a/glusterfs/api.py +++ b/glusterfs/api.py @@ -223,6 +223,12 @@ glfs_rmdir = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_void_p, ctypes.c_char_p)(('glfs_rmdir', client)) +glfs_setfsuid = ctypes.CFUNCTYPE(ctypes.c_int, + ctypes.c_uint)(('glfs_setfsuid', client)) + +glfs_setfsgid = ctypes.CFUNCTYPE(ctypes.c_int, + ctypes.c_uint)(('glfs_setfsgid', client)) + # TODO: creat and open fails on test_create_file_already_exists & test_open_file_not_exist functional testing, # noqa # when defined via function prototype.. Need to find RCA. For time being, using it from 'api.glfs_' # noqa |