static void validateDiskCapacity(long diskCapacityInBytes, long maxDiskCapacityInBytes) {
    if (diskCapacityInBytes < MIN_DISK_CAPACITY_IN_BYTES) {
      throw new IllegalStateException(
          "Invalid disk capacity: " + diskCapacityInBytes + " is less than " + MIN_DISK_CAPACITY_IN_BYTES);
    } else if (diskCapacityInBytes > maxDiskCapacityInBytes) {
      throw new IllegalStateException(
          "Invalid disk capacity: " + diskCapacityInBytes + " is more than " + maxDiskCapacityInBytes);
    }
  }
Validate the disk capacity.
@param diskCapacityInBytes the disk capacity to validate.
@param maxDiskCapacityInBytes max allowed capacity of a disk.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapUtils.java