Class Disklabel

java.lang.Object
oshi.driver.unix.openbsd.disk.Disklabel

@ThreadSafe public final class Disklabel extends Object
Utility class parsing partition information from disklabel command
  • Method Details

    • getDiskParams

      public static Quartet<String,String,Long,List<HWPartition>> getDiskParams(String diskName)
      Gets disk and partition information
      Parameters:
      diskName - The disk to fetch partition information from
      Returns:
      A quartet containing the disk's name/label, DUID, size, and a list of partitions