Package alluxio.util

Class HFSUtils


  • public final class HFSUtils
    extends java.lang.Object
    Utility method called in alluxio-mount.sh to calculate space for Mac OS X HFS+. Metadata zone size is estimated by using specifications noted at http://dubeiko.com/development/FileSystems/HFSPLUS/tn1150.html#MetadataZone, which is slightly larger than actually metadata zone size created by hdiuitl command.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long getNumSector​(java.lang.String requestSize, java.lang.String sectorSize)
      Converts the memory size to number of sectors.
      static void main​(java.lang.String[] args)
      The main class to invoke the getNumSector.
      • Methods inherited from class java.lang.Object

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

      • getNumSector

        public static long getNumSector​(java.lang.String requestSize,
                                        java.lang.String sectorSize)
        Converts the memory size to number of sectors.
        Parameters:
        requestSize - requested filesystem size in bytes
        sectorSize - the size of each sector in bytes
        Returns:
        total sectors of HFS+ including estimated metadata zone size
      • main

        public static void main​(java.lang.String[] args)
        The main class to invoke the getNumSector.
        Parameters:
        args - the arguments parsed by commandline