1. Byron Clark
  2. udiskie


Byron Clark  committed e042faf

Don't mount devices with a partition table.

This should help cases where udisks reports that the raw device has a
filesystem but also contains a partition.

refs issue 5

  • Participants
  • Parent commits 40f3c1a
  • Branches default
  • Tags udiskie-0.3.5

Comments (0)

Files changed (1)

File udiskie/device.py

View file
  • Ignore whitespace
             return False
+    def is_partition_table(self):
+        return self._get_property('DeviceIsPartitionTable')
     def is_partition(self):
         return self._get_property('DeviceIsPartition')
         if self.is_systeminternal():
             return False
+        if self.is_partition_table():
+            return False
         if self.is_opticaldisc():
             if self.is_hasmedia() and self.is_filesystem():
                 return True