MCPcopy
hub / github.com/corpnewt/gibMacOS / get_core_storage_pv

Method get_core_storage_pv

Scripts/disk.py:283–290  ·  view source on GitHub ↗
(self, disk)

Source from the content-addressed store, hash-verified

281 return self._get_physical_disk(disk_id, "Physical Store ")
282
283 def get_core_storage_pv(self, disk):
284 # Returns the core storage physical volume containing the EFI
285 disk_id = self.get_identifier(disk)
286 if not disk_id:
287 return None
288 if not self.is_core_storage(disk_id):
289 return None
290 return self._get_physical_disk(disk_id, "Logical Volume on ")
291
292 def get_parent(self, disk):
293 # Disk can be a mount point, disk name, or disk identifier

Callers 1

get_parentMethod · 0.95

Calls 3

get_identifierMethod · 0.95
is_core_storageMethod · 0.95
_get_physical_diskMethod · 0.95

Tested by

no test coverage detected