Package oshi.driver.unix.aix
Class Lspv
java.lang.Object
oshi.driver.unix.aix.Lspv
Utility to query lspv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, List<HWPartition>> The lspv command incurs a lot of disk reads. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<HWPartition> static List
<HWPartition> Querylspv
to get partition info, or return a cached value.
-
Field Details
-
PARTITION_CACHE
The lspv command incurs a lot of disk reads. Since partitions shouldn't change during operation, cache the result here.
-
-
Constructor Details
-
Lspv
private Lspv()
-
-
Method Details
-
queryLogicalVolumes
public static List<HWPartition> queryLogicalVolumes(String device, Map<String, Pair<Integer, Integer>> majMinMap) Querylspv
to get partition info, or return a cached value.- Parameters:
device
- The disk to get the volumes from.majMinMap
- A map of device name to a pair with major and minor numbers.- Returns:
- A list of logical volumes (partitions) on this device.
-
computeLogicalVolumes
-