self.mountpoint = mountpoint
self.description = description
self.force_mounted = force_mounted
+ self.is_hotplug = force_mounted # so far; this might change.
def stat(self):
return statvfs(self.mountpoint)
return list
- def getMountedPartitions(self):
- return [x for x in self.partitions if x.mounted()]
+ def getMountedPartitions(self, onlyhotplug = False):
+ return [x for x in self.partitions if (x.is_hotplug or not onlyhotplug) and x.mounted()]
harddiskmanager = HarddiskManager()