*/
long getDiskSpace(boolean free) throws IOException {
long biggestSeenSoFar = 0;
String[] localDirs = fConf.getLocalDirs();
for (int i = 0; i < localDirs.length; i++) {
DF df = null;
if (localDirsDf.containsKey(localDirs[i])) {
df = localDirsDf.get(localDirs[i]);
} else {
df = new DF(new File(localDirs[i]), fConf);
localDirsDf.put(localDirs[i], df);
}
long onThisVol = free ? df.getAvailable() : df.getCapacity();
if (onThisVol > biggestSeenSoFar) {
biggestSeenSoFar = onThisVol;
}
}