self.mountpoint = mountpoint
self.description = description
self.force_mounted = force_mounted
self.mountpoint = mountpoint
self.description = description
self.force_mounted = force_mounted
- 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()]