예제 #1
0
 def _drive_disconnected_timeout(self, info):
     del self._disconnecting[info.id]
     try:
         del self._unix_device_to_drive[info.id]
     except KeyError:
         pass
     devices.device_disconnected(info)
예제 #2
0
 def _disk_unmounted(self, volume):
     if not volume in self._info_for_volume:
         return
     device_info = self._info_for_volume.pop(volume)
     info = messages.DeviceInfo(volume, device_info, volume, {}, None, None)
     devices.device_disconnected(info)
예제 #3
0
 def _device_disconnected(self, device):
     try:
         info = self._get_device_info(device)
     except KeyError:
         return
     devices.device_disconnected(info)