calculate the capacity of the filesystem , after removing any reserved capacity . concode_field_sep AtomicLong reservedForRbw concode_elem_sep File currentDir concode_elem_sep long reserved concode_elem_sep DF usage concode_elem_sep ThreadPoolExecutor cacheExecutor concode_elem_sep StorageType storageType concode_elem_sep Map<String,BlockPoolSlice> bpSlices concode_elem_sep FsDatasetImpl dataset concode_elem_sep String storageID concode_elem_sep long configuredCapacity concode_field_sep File getFinalizedDir concode_elem_sep File getRbwDir concode_elem_sep String[] getBlockPoolList concode_elem_sep void shutdownBlockPool concode_elem_sep File getLazyPersistDir concode_elem_sep void releaseReservedSpace concode_elem_sep File createRbwFile concode_elem_sep File createTmpFile concode_elem_sep void checkDirs concode_elem_sep void deleteBPDirectories concode_elem_sep String getPath concode_elem_sep void decDfsUsed concode_elem_sep ThreadPoolExecutor initializeCacheExecutor concode_elem_sep File getCurrentDir concode_elem_sep StorageType getStorageType concode_elem_sep void incDfsUsed concode_elem_sep long getDfsUsed concode_elem_sep long getReservedForRbw concode_elem_sep boolean isTransientStorage concode_elem_sep BlockPoolSlice getBlockPoolSlice concode_elem_sep long getReserved concode_elem_sep boolean isBPDirEmpty concode_elem_sep long getBlockPoolUsed concode_elem_sep void addBlockPool concode_elem_sep String getBasePath concode_elem_sep File addFinalizedBlock concode_elem_sep void setCapacityForTesting concode_elem_sep String getStorageID concode_elem_sep String toString concode_elem_sep DatanodeStorage toDatanodeStorage concode_elem_sep long getAvailable concode_elem_sep void reserveSpaceForRbw concode_elem_sep Executor getCacheExecutor concode_elem_sep void getVolumeMap concode_elem_sep void getVolumeMap concode_elem_sep void shutdown
long function ( ) { if ( configuredCapacity < 0 ) { long loc0 = usage . getCapacity ( ) - reserved ; return loc0 > 0 ? loc0 : 0 ; } return configuredCapacity ; }