summaryrefslogtreecommitdiffstats
path: root/glusterfs
Commit message (Collapse)AuthorAgeFilesLines
* 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-232-2/+20
|\ \
| * | adding functions setfsuid and setfsgidThiago da Silva2015-02-202-2/+20
| |/ | | | | | | | | | | | | | | 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>
* | Added option to read whole fileThiago da Silva2015-02-201-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added option to read whole file if caller send -1 as the buflen to read function. Also added a copy of getsize to File class, now called fgetsize, which returns the size of the file as reported by fstat Removed flags paramater from read function as it is never used by libgfapi. Change-Id: Ia1c04ef9717d9ca098e1961300d6ee216381c989 Signed-off-by: Thiago da Silva <thiago@redhat.com> Signed-off-by: Prashanth Pai <ppai@redhat.com>
* | adding chmod and fchmodThiago da Silva2015-02-192-0/+36
|/ | | | | Change-Id: Iba5f4e72a257adeb8ec78b267dfdef26a1ec66f1 Signed-off-by: Thiago da Silva <thiago@redhat.com>
* Provide default mode for Volume.mkdir()Prashanth Pai2014-09-042-3/+3
| | | | | | | | | | | | | | | | | 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-022-99/+261
| | | | | | | | | 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>
* Fix functional testsPrashanth Pai2014-05-191-0/+3
| | | | | | | | | | | | | | * The order of elements in list returned by listdir() can vary and may not be sorted. This caused assertEqual in "test_listdir" to fail. * Also, some systems may have xattrs belonging to selinux. So, a listxattr can list them too. * Allow hostname/ip and volume name to be configured easily by setting it in test.conf. This enables functional tests to use a non-local volume. * Cleanup volume before and after running functional tests. * Added MANIFEST.in and LICENSE file Change-Id: Icfa6eb60e8d8e7ed4d6ab8190a2a2c80688999a3 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Add statvfs supporthchiramm2014-05-021-0/+29
| | | | | | | | This support will help other consumers to get the statvfs details. Change-Id: Iee4e84a515ff80f24add812ad6fcf84c992bf356 Signed-off-by: hchiramm <hchiramm@redhat.com>
* adding new apis requested from gluster-swift projThiago da Silva2014-03-271-2/+46
| | | | | | | | This patch adds new functions that are used in gluster-swift. These functions are: dup, lseek, getatime, getctime, getmtime Change-Id: I09036f7e393a89e09913f7f6de173e1eca8dca95 Signed-off-by: Thiago da Silva <thiago@redhat.com>
* merging creat and open function to be more pythonicThiago da Silva2014-03-211-25/+17
| | | | | | | | | | the os python module does not offer a creat function, new files are created using the open function and by passing O_CREAT flag. We are changing gfapi.py to function the same way. Change-Id: I5e084b200bb657e3124d3e620a47160e790cd1fe Signed-off-by: Thiago da Silva <thiago@redhat.com>
* changing gluster dir to glusterfsThiago da Silva2014-03-182-0/+585
making this change to avoid package conflicts with gluster-swift and glusterfs-api rpm. Eventually we will remove the python code from glusterfs-api rpm and create a new rpm package from libgfapi-python. Change-Id: I1b20cd747e500aed17fba89f96e62423325b5230 Signed-off-by: Thiago da Silva <thiago@redhat.com>