summaryrefslogtreecommitdiffstats
path: root/gluster/gfapi/gfapi.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow unmounting only on properly initialised fs objectPrashanth Pai2018-09-191-1/+1
| | | | | | | | | | | | Libgfapi program coredumps when glfs_fini() is called on an uninitialised fs object. This fix will check if fs has been properly initialised before calling glfs_fini() Glusterfs BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1630803 Change-Id: I27f834b0477a84c7a08ebc7a5e5bfab934220f77 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Support setting multiple hosts (volfile servers)Prashanth Pai2018-07-311-16/+24
| | | | | | | | Fixes https://github.com/gluster/libgfapi-python/issues/20 Change-Id: If12dfb3166d37071f8996c4d043950aeb27d0ae7 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Support mknod APIMichael Hanselmann2018-07-271-0/+17
| | | | | | | | Gluster supports the mknod(2) API to create special files such as character and block devices. Add it to the "gfapi.Volume" class. Change-Id: Ie62245441997111b0cf6e44b2a14a1ad7b6d7d56 Signed-off-by: Michael Hanselmann <public@hansmi.ch>
* Port to Python 3.xAdam Cecile2018-06-121-58/+123
| | | | | | | | | | | | | Based on PR sent by Adam C├ęcile (eLvErDe on GitHub): https://github.com/gluster/libgfapi-python/pull/21 Additional changes to original PR: * Make it pep8 compliant * Fix comment in getcwd() * Add functest36 env to tox.ini Change-Id: I45c4056333c12a82814cf8adcfa87e6687365366 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Disable logging by defaultAlpha2018-03-281-5/+11
| | | | | | | | | | Superusers should not be required to use this API with default settings. Provide a disable_logging method of Volume. Ensure that set_logging gets called with new values. Change-Id: Ia27a682c96d6ca28f85d43f9d8483f08d1dc6367 Signed-off-by: Alpha <alpha@pokesplash.net> Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Add get_volume_id() APIPrashanth Pai2018-01-111-0/+19
| | | | | Change-Id: Ia4c378c5b1657bb4ec23c7057c7cbc49c1b31484 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Expose mounting over unix socketPrashanth Pai2017-12-221-2/+3
| | | | | Change-Id: I17078b6d20372c3935f7bcd8c82f55f96096dd87 Signed-off-by: Prashanth Pai <ppai@redhat.com>
* Move source files into gfapi/ dirPrashanth Pai2016-08-101-0/+1734
Currently, many source files are directly placed under gluster/ dir: gluster/exceptions.py gluster/gfapi.py gluster/utils.py When multiple packages (RPMs) are sharing the same gluster namespace, these source files will conflict if there are source files with same names provided by other projects. Fix: Move all source files in gluster/* to gluster/gfapi/* Note that this patch does not break how existing users import gfapi. Change-Id: Idf9d07eefafe8333215d6c61201c97c982565ba9 Signed-off-by: Prashanth Pai <ppai@redhat.com>