Reverted the orginal implementation of hdfsGetCapacity