summaryrefslogtreecommitdiffstats
path: root/glusterfs/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge "adding functions setfsuid and setfsgid"Thiago da Silva2015-02-231-0/+6
|\
| * adding functions setfsuid and setfsgidThiago da Silva2015-02-201-0/+6
| | | | | | | | | | | | | | | | 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>
* | adding chmod and fchmodThiago da Silva2015-02-191-0/+9
|/ | | | | Change-Id: Iba5f4e72a257adeb8ec78b267dfdef26a1ec66f1 Signed-off-by: Thiago da Silva <thiago@redhat.com>
* Provide default mode for Volume.mkdir()Prashanth Pai2014-09-041-1/+1
| | | | | | | | | | | | | | | | | Calling mkdir without mode used to fail with following error: >>> vol.mkdir('/c2') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: mkdir() takes exactly 3 arguments (2 given) Python's os.mkdir() defined default mode: https://docs.python.org/2/library/os.html#os.mkdir Also, changed mode_t is of type unsigned short (ctypes.c_ushort). Change-Id: I95e47a8173d90e2a162cfeb9af002ea0c20fc2ff Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Adding function prototypes with this patch.Humble Chirammal2014-07-021-0/+244
This helps ctypes know the calling conventions it should use to communicate with the binary interface of libgfapi and which types it should allocate and cast. Without it, ctypes fails/crashes when not running on the main thread. Change-Id: I73480229f451167377ed4d1534b08b66c689cc4f Signed-off-by: Humble Chirammal <hchiramm@redhat.com>