Reduce device size minimum requirement to 850MB

This commit is contained in:
Silvan Calarco 2012-11-09 16:05:42 +01:00
parent 7480787538
commit 119ebc9b7c

View File

@ -256,8 +256,8 @@ def get_list():
for dev in ud_manager.EnumerateDevices():
device_obj = bus.get_object('org.freedesktop.UDisks', dev)
device_props = dbus.Interface(device_obj, dbus.PROPERTIES_IFACE)
# If dev.space > 1 Gb
if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 1073741823:
# If dev.space > 850 MB
if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 891289600:
# If dev is removable
if(device_props.Get('org.freedesktop.UDisks.Device', 'DeviceIsRemovable')):
# Populate the arrays