Timothy Asir has uploaded a new change for review.

Change subject: fix fstype unavailable for a formatted device
......................................................................

fix fstype unavailable for a formatted device

Finds the fstype and add it to the device dictonary

Change-Id: If7c5d3913b61e37c6a4ad31e0348f86cde6152b9
Signed-off-by: Timothy Asir Jeyasingh <tjeya...@redhat.com>
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1209493
---
M vdsm/gluster/storagedev.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/40206/1

diff --git a/vdsm/gluster/storagedev.py b/vdsm/gluster/storagedev.py
index a860179..a791294 100644
--- a/vdsm/gluster/storagedev.py
+++ b/vdsm/gluster/storagedev.py
@@ -30,6 +30,7 @@
 from blivet.devices import LVMThinPoolDevice
 from blivet.devices import LVMLogicalVolumeDevice
 from blivet.devices import LVMThinLogicalVolumeDevice
+from blivet import udev
 
 import storage.lvm as lvm
 from vdsm import utils
@@ -78,7 +79,9 @@
         info['model'] = device.type
     if device.format:
         info['uuid'] = device.format.uuid or ''
-        info['fsType'] = device.format.type or ''
+        dev = udev.get_device(i.sysfsPath)
+        info['fsType'] = device.format.type or (
+            dev and 'ID_FS_TYPE' in dev and dev['ID_FS_TYPE']) or ''
     if hasattr(device.format, 'mountpoint'):
         info['mountPoint'] = device.format.mountpoint or ''
     return info


-- 
To view, visit https://gerrit.ovirt.org/40206
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7c5d3913b61e37c6a4ad31e0348f86cde6152b9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Timothy Asir <tjeya...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to