We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23f4b3 commit adc14d2Copy full SHA for adc14d2
lib/host.py
@@ -543,13 +543,15 @@ def disks(self):
543
def raw_disk_is_available(self, disk: str) -> bool:
544
"""
545
Check if a raw disk (without any identifiable filesystem or partition label) is available.
546
+
547
It suggests the disk is "raw" and likely unformatted thus available.
548
549
return self.ssh_with_result(['blkid', '/dev/' + disk]).returncode == 2
550
551
def disk_is_available(self, disk: str) -> bool:
552
553
Check if a disk is unmounted and appears available for use.
554
555
It may or may not contain identifiable filesystem or partition label.
556
If there are no mountpoints, it is assumed that the disk is not in use.
557
0 commit comments