DeviceManager : fix hotplug umount.
authorChang.H.S <jhs@dev3>
Wed, 12 Dec 2012 05:36:54 +0000 (14:36 +0900)
committerChang.H.S <jhs@dev3>
Wed, 12 Dec 2012 05:36:54 +0000 (14:36 +0900)
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py

index ec12258..66b67aa 100755 (executable)
@@ -1455,11 +1455,13 @@ class deviceManagerHotplug:
 
        def doUmount(self, device, mountpoint):
                devpath = "/dev/"+device
-               if len(deviceinfo.checkMountDev(devpath)) == 0:
+               mountpoints = deviceinfo.checkMountDev(devpath)
+               if len(mountpoints) == 0:
                        return
-               cmd = "umount %s"%devpath
-               print "[DeviceManager] cmd : %s"%cmd
-               os.system(cmd)
+               for mp in mountpoints:
+                       cmd = "umount %s"%devpath
+                       print "[DeviceManager] cmd : %s"%cmd
+                       os.system(cmd)
 
        def addHotPlugDevice(self, partition):
                device = partition.device