From b5a327eb9c0c1ec3f77a36676d6cc9878353ec1b Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Thu, 19 Feb 2015 14:59:48 -0500 Subject: 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 --- glusterfs/api.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'glusterfs/api.py') 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 -- cgit