projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0be0d94
)
DeviceManager : disable hotplugAction for mkfs.
author
Chang.H.S
<jhs@dev3>
Thu, 13 Dec 2012 06:11:30 +0000
(15:11 +0900)
committer
Chang.H.S
<jhs@dev3>
Thu, 13 Dec 2012 07:05:00 +0000
(16:05 +0900)
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
patch
|
blob
|
history
diff --git
a/lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
b/lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
index
66b67aa
..
ec85d0f
100755
(executable)
--- a/
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
+++ b/
lib/python/Plugins/SystemPlugins/DeviceManager/plugin.py
@@
-879,11
+879,14
@@
class DeviceFormat(Screen):
self.onLayoutFinish.append(self.timerStart)
self.formatStartTimer = eTimer()
self.formatStartTimer.callback.append(self.DeviceFormatStart)
self.onLayoutFinish.append(self.timerStart)
self.formatStartTimer = eTimer()
self.formatStartTimer.callback.append(self.DeviceFormatStart)
+ self.setHotplugDisabled = False
def timerStart(self):
self.formatStartTimer.start(100,True)
def DeviceFormatStart(self):
def timerStart(self):
self.formatStartTimer.start(100,True)
def DeviceFormatStart(self):
+ devicemanagerhotplug.setHotplugActive(False)
+ self.setHotplugDisabled = True
print "DeviceFormatStart : ", self.partition,
print "Filesystem : ",self.newfstype
device = self.partition["partition"]
print "DeviceFormatStart : ", self.partition,
print "Filesystem : ",self.newfstype
device = self.partition["partition"]
@@
-1010,6
+1013,9
@@
class DeviceFormat(Screen):
self.session.openWithCallback(self.exit, MessageBox, msg, MessageBox.TYPE_ERROR, timeout = 10)
def exit(self, ret):
self.session.openWithCallback(self.exit, MessageBox, msg, MessageBox.TYPE_ERROR, timeout = 10)
def exit(self, ret):
+ if self.setHotplugDisabled == True:
+ devicemanagerhotplug.setHotplugActive(True)
+ self.setHotplugDisabled = False
self.close()
#device format end
self.close()
#device format end
@@
-1414,6
+1420,12
@@
class deviceManagerHotplug:
def __init__(self):
self.hotplugActive = True
def __init__(self):
self.hotplugActive = True
+ def setHotplugActive(self,value=True):
+ if value:
+ self.hotplugActive = True
+ else:
+ self.hotplugActive = False
+
def printDebug(self):
for p in harddiskmanager.partitions:
print " # partition : %s %s %s %s %s(mp, des, f_mounted, is_hot, dev)"%(p.mountpoint, p.description, p.force_mounted, p.is_hotplug,p.device)
def printDebug(self):
for p in harddiskmanager.partitions:
print " # partition : %s %s %s %s %s(mp, des, f_mounted, is_hot, dev)"%(p.mountpoint, p.description, p.force_mounted, p.is_hotplug,p.device)