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

Comments (0)

Files changed (1)


             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