summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.server.scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.gluster.storage.management.server.scripts')
-rw-r--r--src/com.gluster.storage.management.server.scripts/src/DiskUtils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com.gluster.storage.management.server.scripts/src/DiskUtils.py b/src/com.gluster.storage.management.server.scripts/src/DiskUtils.py
index 18357789..e796f479 100644
--- a/src/com.gluster.storage.management.server.scripts/src/DiskUtils.py
+++ b/src/com.gluster.storage.management.server.scripts/src/DiskUtils.py
@@ -313,6 +313,9 @@ def getDiskInfo(diskDeviceList=None):
partition["Type"] = "DATA"
else:
partition["Type"] = "BOOT"
+ else:
+ if "SWAP" == partition["FsType"].strip().upper():
+ partition["Type"] = "SWAP"
partition["ReadOnlyAccess"] = str(partitionHalDevice.GetProperty('volume.is_mounted_read_only'))
partitionList.append(partition)
disk["Partitions"] = partitionList