Class Lshal


  • @ThreadSafe
    public final class Lshal
    extends java.lang.Object
    Utility to query lshal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String LSHAL_CMD  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Lshal()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Integer> queryDiskToMajorMap()
      Query lshal to get device major
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Lshal

        private Lshal()
    • Method Detail

      • queryDiskToMajorMap

        public static java.util.Map<java.lang.String,​java.lang.Integer> queryDiskToMajorMap()
        Query lshal to get device major
        Returns:
        A map with disk names as the key and block device major as the value if lshal is installed; empty map otherwise