summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py')
-rw-r--r--src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py b/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
index fc9bac5d..3c90c533 100644
--- a/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
+++ b/src/com.gluster.storage.management.gateway.scripts/src/common/Utils.py
@@ -15,6 +15,7 @@ import syslog
import subprocess
import time
import tempfile
+import glob
import Globals
@@ -323,3 +324,6 @@ def grun(serverFile, command, argumentList=[]):
return 0
else:
return 2
+
+def getFileSystemType():
+ return [os.path.basename(i).split('.')[1] for i in glob.glob("/sbin/mkfs.*")]