void setDiskCapacityInBytes(long capacityInBytes) {
    ClusterMapUtils.validateDiskCapacity(capacityInBytes, maxCapacityInBytes);
    // Update the available disk space
    availableSpaceInBytes.getAndAdd(capacityInBytes - rawCapacityBytes);
    rawCapacityBytes = capacityInBytes;
  }
Set the new disk capacity in bytes.
@param capacityInBytes the new capacity in bytes.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/AmbryDisk.java