summaryrefslogtreecommitdiffstats
path: root/glusterfs/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename module name from glusterfs to glusterHumble Chirammal2015-04-251-402/+0
| | | | | | | | | | | | | The goal is to consolidate all gluster related python packages under single namespace "gluster". From client's perspective, it was: from glusterfs import gfapi Henceforth, it wil be: from gluster import gfapi Change-Id: If2509f570563ae7660892963607c9474313f803c Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
* Merge "Adding libgfapi reference for mapping."Thiago da Silva2015-02-231-0/+143
|\
| * Adding libgfapi reference for mapping.Humble Chirammal2015-02-231-0/+143
| | | | | | | | | | Change-Id: Iaf2ae5a07e3ccb9919f6020f42962b4441557596 Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
* | 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>